Commit Graph

65 Commits

Author SHA1 Message Date
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
David-wu91
e5bbfe704d
resolve issue #9318 add ldap filter config:caseSensitive (#9444)
* resolve issue #9318 add ldap filter config:caseSensitive

* resolve issue #9318 change code style

* resolve issue #9318 add unit test
2022-11-07 17:24:53 +08:00
hth
898cbb18d4
move custom db pwd plugin to nacos-group and specification plugin name (#9480) 2022-11-07 17:09:13 +08:00
hth
5ea747b863
[ISSUE #8619] add CustomEnvironmentPlugin (#8619) (#9296)
* [ISSUE #8619] add CustomEnvironmentPlugin (#8619)

* feature issue #8619 .

* custom properties.

* reformat codes and author fix

* remove customEnvironment to nacos-core and Complete test

* add license

* pmd fix

* code optimization

* conflict fix
2022-11-04 15:24:25 +08:00
Weizhan Yun
c3c7e1ba1c
[ISSUE #9367] fix auth plugin's property 'token.secret.key' base64 decode error. (#9380)
* 1. 修复密钥编码问题--为了避免歧义,密钥必须为base64编码的字符串;不再支持原始明文密钥。
2. JwtParser是线程安全的,重构为成员变量。

* 配置项保持明文字符串
2022-11-03 13:40:26 +08:00
liuchen6
0a8027641e
[ISSUE #9414] Optimize fuzzy queries to make SQL more general (#9428) 2022-10-31 14:01:18 +08:00
Karson
1076d5cf61
[ISSUE #9366] Support Ldaps authentication (#9371)
* support ldaps auth

* add ldaps IT test.

* add ldaps IT test.

* add ldaps IT test.

* add ldaps IT test.
2022-10-24 09:34:47 +08:00
Karson
99b7390a97
fix bug #9341 (#9342) 2022-10-19 09:30:37 +08:00
zhouchunhai
526c085b77
Feature #8941 Support Fuzzy Query in Authority Control--for api change. (#9128)
* Feature #8941 Support Fuzzy Query in Authority Control--for api change.

* fix check style error.

* fix unit test error.
2022-09-26 10:32:20 +08:00
karsonto
f27113b3b0 add some unit test 2022-09-20 15:37:35 +08:00
karsonto
8d75c28151 resolve issue #9175 add ldap filter config 2022-09-20 11:56:44 +08:00
chenhao26
87d9efde2d
add some auth plugin test (#8988)
* add some auth plugin test

* ru ci
2022-08-18 09:29:46 +08:00