Commit Graph

76 Commits

Author SHA1 Message Date
blake.qiu
96a93189c3
feat(#12405): The LDAP default password is a fixed value 'nacos' and cannot be customized. (#12406) 2024-07-24 14:50:49 +08:00
徐晓伟
fbfa39d06d
🔧 fix pom.xml version (#12417)
https://github.com/alibaba/nacos/issues/12416
2024-07-24 14:42:14 +08:00
杨翊 SionYang
197795a854
Fix #12395, use request context replace session depend. (#12398) 2024-07-22 13:32:41 +08:00
hth
e8e8cd29c0
add some UT for default auth plugin (#12318) 2024-07-08 10:48:51 +08:00
shalk(xiao kun)
8034da88e5
[ISSUE #12016] upgrade to junit5 and remove junit4 (#12280)
* clean junit4

* clean junit4

* clean some test dep; fix scope

* fix test compile
2024-06-26 17:39:08 +08:00
shalk(xiao kun)
ab6591ac83
upgrade module naocs-plugin-impl from junit4 to junit5 (#12230) 2024-06-17 14:07:37 +08:00
杨翊 SionYang
857e6113c4
No need init password when auth disabled. (#12153) 2024-05-31 09:24:21 +08:00
杨翊 SionYang
98edf22e8c
Change duplicate create admin user api return code to 4xx. (#12149) 2024-05-30 15:28:29 +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
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
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
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
温安适
c2aa515f1e
PageHandlerAdapterFactory, handlerAdapters,handlerAdapterMap should unmodifiable (#11801)
* 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
2024-03-07 10:48:49 +08:00
黄科铭
4f279bf110
fix issues/11723 PageHandlerAdapterFactory 集合容量不够大 (#11763) 2024-02-22 14:59:49 +08:00
Happy-26
30a5014e5d
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. (#11636) 2024-01-17 16:19:41 +08:00
hth
a7d1c35f85
fix user update permission (#11603) 2024-01-11 17:16:00 +08:00
hth
2296125d41
add UT for control default plugin (#11572)
* add control default plugin Test

* Copyright fix
2024-01-05 17:48:41 +08:00
Karson
97104b2445
[ISSUE #11586]Remove deprecated api of spring security (#11587)
* remove deprecated config

* style fix
2024-01-05 17:02:39 +08:00
杨翊 SionYang
a3420b733b
[ISSUE#11494] Fix frequently request login api when using 2.X client with username. (#11495)
* Fix frequently request login api when using 2.X client with username.

* Fix frequently request login api when using 2.X client with username.
2023-12-12 14:13:56 +08:00
虢豳
26d045ca49
fix(#11489): PageHandlerAdapterFactory initHandlerAdapters error (#11490) 2023-12-12 11:59:35 +08:00
黄科铭
736948f495
fix auth plugin Page (#11300)
* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Optimize paginated queries based on data sources

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Revert "Revert "add startup conditions""

This reverts commit 4225891414851e501b0c055cc1c295561440307b.

* DialectFactory add database  supported

* fix auth plugin Page, add dataSource plugin Dialect

* description

* remove dataSource plugin Dialect

* detail adjustment

* DefaultPageHandlerAdapter
2023-11-24 16:28:55 +08:00
杨翊 SionYang
57efe9f520
use DefaultNacosTpsBarrierCreator as Tps manager default impl. (#11185) 2023-09-25 17:04:41 +08:00
杨翊 SionYang
51b6a443d3
Refactor control plugin (#11174)
* Refactor control plugin and add default implementation.

* Move auth default plugin into other modules.

* Fix control plugin config not effect problem.

* Fix UT error.
2023-09-22 16:59:25 +08:00
xYohn
2428a503e4
#10930 forward compatible old version secretKey (#10931) 2023-08-29 16:07:22 +08:00
KomachiSion
f5c3a4b3dc Fix login failed when close auth. 2023-08-07 10:55:21 +08:00
ZhangShenao
8fa83cec37
fix word spelling in AuthenticationManagerDelegator (#10777) 2023-07-13 11:08:38 +08:00
Montos
70b96495bd
Fix -在开启认证的情况下增加token解析认证处理方式 (#10425)
* Fix -在开启认证的情况下增加token解析认证处理方式

Fix -在开启认证的情况下增加token解析认证处理方式

* Update UserController.java

* Update UserController.java

* fix codestyle
2023-05-16 17:35:38 +08:00
KomachiSion
f345bc5ba1 UserPersistService add PageHelper. 2023-05-09 11:09:45 +08:00
KomachiSion
f96ebd3e9a RolePersistService add PageHelper. 2023-05-09 10:57:42 +08:00
KomachiSion
6067779974 PermissionPersistService add PageHelper. 2023-05-09 10:45:27 +08:00
KomachiSion
4622d0e1bf Split RowMapperManager and move to persistence module. 2023-04-25 14:23:43 +08:00
KomachiSion
77b7377826 Move Conditions to persistence module. 2023-04-23 20:06:22 +08:00
KomachiSion
326b82fb06 Move Embedded operate to persistence module. 2023-04-23 18:02:27 +08:00
KomachiSion
8dfd31a87d Move QueryType to persistence module. 2023-04-23 17:54:21 +08:00
KomachiSion
6acabeca67 Move some methods from EmbeddedStorageContextUtils to EmbeddedStorageContextHolder 2023-04-23 17:37:14 +08:00
KomachiSion
f83061f47d Move some datasource and relative classes into persistence module. 2023-04-23 16:00:42 +08:00
徐晓伟
68f172f831
🐛 default namespace resource matches (#10350) 2023-04-21 11:34:27 +08:00
杨翊 SionYang
b3b5236cd4
Develop synced from 2.2.2 (#10307)
* Fix dynamic change token to illegal value will use old token.

* Add description in pom for release.

* Upgrade to 2.2.2

* Upgrade to 2.3.0-SNAPSHOT
2023-04-11 17:34:06 +08:00
杨翊 SionYang
e26dc2fb23
Merge pull request #10277 from alibaba/develop#10153
Develop#10153
2023-04-06 17:25:18 +08:00
杨翊 SionYang
935e6a7f2b
Don't stopping startup for illegal token.secret.key when auth.enabled is false. (#10273) 2023-04-06 14:30:22 +08:00
杨翊 SionYang
89685a65ed
Don't stopping startup for illegal token.secret.key when auth.enabled is false. (#10265) 2023-04-03 18:36:43 +08:00
varyuan
2dde125a51
clean code (#10180)
* clean code

* clean code

* clean code

* clean code
2023-03-29 14:25:22 +08:00
杨翊 SionYang
5fffde5bde
[ISSUE#10153] Add auth state into /state api and add announcement api. (#10203)
* Add ModuleState and use ModuleState replace ServerStateController.

* Add AuthModuleStateBuilder

* state接口使用ModuleState.

* Add announcement api.

* skip rat scan for announcement.conf

* default plugin open login page when auth.enabled=true.
2023-03-27 19:00:22 +08:00
XS
4242fc626a
fix LDAP login failed (#9932)
*  fix LDAP login failed
 fix LDAP AD login Ignore partial result exception

* 🎨 checkstyle reformat
2023-02-22 11:18:47 +08:00
杨翊 SionYang
c04b0bbb44
Remove the default token.secret.key (#9992) 2023-02-22 10:52:13 +08:00
MajorHe1
5a8c567633
[ISSUE #9906] cache token to improve performance (#9914)
* [ISSUE #9906] cache token to improve performance

* [ISSUE #9906] add cache token enable switch to application.properties

* [ISSUE #9906] update javadoc

* [ISSUE #9906] update javadoc

* [ISSUE #9906] update unit test

* [ISSUE #9906] make ci rerun
2023-02-10 10:51:05 +08:00
云野
42b28f9bc0
[ISSUE #9859] 重构默认插件的登陆/鉴权逻辑 (#9889)
* refactor auth logic;fix conflict

* update unit test.
2023-02-03 14:47:06 +08:00
云野
ade3f8295f
[ISSUE #9859]使用自定义的JWT生成/验证方法,而不依赖于jjwt. (#9873)
* 使用自定义jwt生成

* add unit test; fix log msg.

* add license
2023-02-02 10:47:27 +08:00
云野
332dc1d348
fix #9819 (#9850) 2023-01-28 10:35:57 +08:00
gongzhongqiang
708387c277
fix:replace nacos website url to https. (#9797) 2023-01-10 09:47:52 +08:00