Commit Graph

4083 Commits

Author SHA1 Message Date
李晓双 Li Xiao Shuang
bcd9603b06
Merge pull request #7850 from hujun-w-2/ConfigQueryGroupKeyParserTest
[ISSUE#5092]add ConfigQueryGroupKeyParserTest
2022-03-01 10:04:04 +08:00
hujun3
3e1f00362c add ConfigRemoveRequestHandlerTest 2022-02-26 14:28:46 +08:00
hujun3
b553dac47e add ConfigRemoveRequestHandlerTest 2022-02-26 14:25:19 +08:00
hujun3
d4c499aec5 add ConfigQueryGroupKeyParserTest 2022-02-26 13:35:35 +08:00
hujun3
9c805fd4f3 ConfigPublishGroupParserTest 2022-02-26 13:30:04 +08:00
hujun3
92964a66db ConfigQueryGroupParserTest 2022-02-26 13:21:50 +08:00
chenhao26
1caba326e9
删除PayloadRegistry register方法中无效的逻辑判断 (#7839) 2022-02-25 14:11:00 +08:00
李晓双 Li Xiao Shuang
ddd911f5fd
Merge pull request #7838 from Chaos-coder/clean_redundant_code_StorageFactory
删除StorageFactory类冗余代码
2022-02-25 11:11:38 +08:00
chaos
d83019cf59 删除冗余代码 2022-02-25 10:46:03 +08:00
MajorHe1
c5c72ab874
[ISSUE #5092] add unit test for TenantCapacityPersistService (#7826) 2022-02-24 14:22:11 +08:00
李晓双 Li Xiao Shuang
5f77ba60f3
Merge pull request #7827 from MajorHe1/add_test_for_DynamicDataSource
[ISSUE #5092] add unit test for DynamicDataSourceTest
2022-02-23 22:32:52 +08:00
MajorHe1
4a3dec75f4 [ISSUE #5092] add unit test for DynamicDataSourceTest 2022-02-23 20:58:12 +08:00
胡俊
bcf2951ac1
fix his_config query (#7763) 2022-02-23 16:48:56 +08:00
MajorHe1
46cb3c8d6e
[ISSUE #5092] add unit test for GroupCapacityPersistService (#7819) 2022-02-23 09:45:43 +08:00
胡俊
b695036c88
add ConfigPublishGroupKeyParserTest (#7820) 2022-02-23 09:44:54 +08:00
李晓双 Li Xiao Shuang
494f606f3e
Merge pull request #7817 from hujun-w-2/ConfigChangeClusterSyncRequestHandlerTest
[ISSUE #5092]Config change cluster sync request handler test
2022-02-22 20:58:50 +08:00
hujun3
1805793261 add ConfigChangeClusterSyncRequestHandlerTest 2022-02-22 20:22:49 +08:00
hujun3
f8e2e87b58 add ConfigChangeClusterSyncRequestHandlerTest 2022-02-22 20:21:37 +08:00
MajorHe1
ade162c4be
[ISSUE #7593] judge whether file exists in disk (#7677) 2022-02-21 18:33:16 +08:00
Martin Grigorov
e24a80d61c
Build and test on Linux ARM64 at TravisCI (#7777)
Update Grpc to 1.26.0. This is the first version with aarch_64 support
in protoc-gen-grpc-java
(https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.26.0/)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
2022-02-21 17:10:00 +08:00
杨翊 SionYang
72ce3e0884
[ISSUE#7757] Fix jraft read request deserialize to write request problem. (#7797)
* Fix jraft read request deserialize to write request problem.

* For checkstyle.
2022-02-21 16:17:09 +08:00
MajorHe1
1c5cf5ee9a
[ISSUE #7621] Add hasChange judgement in ServerMemberManager to avoid useless nacos-cluster log output (#7622)
* [ISSUE #7621] Add hasChange judgement in ServerMemberManager to avoid useless nacos-cluster log output

* [ISSUE #7621] judge whether Loggers.CLUSTER is debug enabled.
2022-02-21 16:08:55 +08:00
zrlw
5df5baf491
log what causes I/O reactor status to STOPPED (#7723) 2022-02-21 15:47:27 +08:00
WeizhanYun
5dc58f8d14
update protobuf-maven-plugin version to 0.6.1(the same as module 'istio' (#7759) 2022-02-21 11:21:34 +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
李晓双 Li Xiao Shuang
ede1df62e3
Merge pull request #7771 from KomachiSion/develop#5696
[ISSUE#5696]Auth plugin add enableAuth method to switch auth more precisely.
2022-02-15 16:23:51 +08:00
KomachiSion
5931ded303 Remove unused mock in unit test. 2022-02-15 14:29:41 +08:00
KomachiSion
eeb5268282 auth plugin add enableAuth method to switch auth more precisely. 2022-02-15 14:21:31 +08:00
杨翊 SionYang
1c3656a1b0
[ISSUE#5696] Keep original resource parse result rather than use any replace when … (#7764)
* Keep original resource parse result rathar than use any replace when resource is empty.

* Identity Builder for http will be case-insensitive.

* For checkstyle.
2022-02-15 10:21:55 +08:00
杨翊 SionYang
64dcc0ed0a
[ISSUE#5696] IdentityContext build from resource and remote ip. (#7745)
* validateIdentity add Resource input for extension.

* IdentityContext parse remoteIp.
2022-02-09 17:57:39 +08:00
李晓双 Li Xiao Shuang
080f1ff592
Merge pull request #7743 from Chaos-coder/code_optimization_config_controller
删除ConfigController类冗余代码
2022-02-09 16:47:06 +08:00
chaos
d1d451f3a2 format code style 2022-02-09 16:01:29 +08:00
chenhao26
74e421925b
InstanceUtil 分支判断优化 (#7713) 2022-02-09 15:43:13 +08:00
chaos
af34095b3e Delete redundant code 2022-02-09 15:09:58 +08:00
chaos
48a7af4610 Delete redundant code 2022-02-09 15:07:58 +08:00
onewe
3f31ac08aa [Optimize] Optimize some code of config controller
- Remove unnecessary annotation `Autowired`
- Replace with <>
- Remove unnecessary init statement
- Change injection method from field injection to constructor injection
- Remove unnecessary bool string
- Remove unnecessary judgment statement
2022-02-09 14:35:50 +08:00
Steafan Zhou
ee26380692
Develop issue#7224 (#7318)
* For #4092,Fix the problem.

* For #7224,Fix the problem.

* For #7224,Fix the problem.
2022-02-09 10:50:38 +08:00
onewe
2afad2a22f
[Optimize] Optimize some code (#7736)
- Remove unnecessary annotation `Autowired`
- Replace with <>
- Remove unnecessary judgment statement
- Remove unnecessary init statement
- Remove unnecessary exception declaration statement
2022-02-09 10:36:59 +08:00
Roger3581321
939e381d36
Strengthening the code (#7729) 2022-02-08 09:53:23 +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
杨翊 SionYang
6a6f32ce6d
Merge pull request #7732 from alibaba/summer2021_issue#5696
[ISSUE#5696] Add the authentication plugin
2022-02-07 10:30:53 +08:00
杨翊 SionYang
50879960ef
Merge pull request #7721 from alibaba/revert-7712-summer2021_issue#5696
Revert "[ISSUE#5696] Add the authentication plugin "
2022-02-07 10:05:33 +08:00
杨翊 SionYang
f654026d69 Revert "[ISSUE#5696] Add the authentication plugin (#7712)"
This reverts commit 97c7b9b849.
2022-01-28 18:01:52 +08:00
杨翊 SionYang
97c7b9b849
[ISSUE#5696] Add the authentication plugin (#7712)
* [ISSUE#5696] Add auth plugin interface. (#6593)

* define plugin

* add User model

* add authContext

* add SPI

* add resource, modify request, reformat code

* copyright, Serverloader, IdentityContext

* add unit test

* modify ClassLoader, and delete GrantType

* delete redundancy code

* remove authservice default name

* Change to StringUtils

* Add auth client: plugin and implement (#6883)

* Revise Auth server plugin (#6890)

* [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

* [ISSUE #5696] Add auth server implement (#6901)

* Add auth server implement.

* Modify auth server: class name

* Add MySQL DataBase (#6968)

* add derby database (#6996)

* [ISSUE#5696] Fix auth server type (#7004)

* Add MySQL DataBase

* Add Derby Database

* Replace Auth Server

* Revise: change to AuthSystemType

* [ISSUE#5696] repackage client (#7029)

* Rename and move classes make them more readable.

* Rename and move test classes.

* [ISSUE#5696] Add Ram client auth service impl. (#7036)

* Add Resource abstract.

* Add Ram client auth service impl.

* [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.

* [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.

* For PMD.

* For PMD and copyright.

* Fix ram type plugin not login for config module.

* [ISSUE #7114] Enhance the constants for auth module. (#7170)

- Create a Constants.java
- Move all the string literal to the Constants.java
- Delete the PropertiesConstant.java

* [ISSUE#5696] revert nacos server plugin implementation moved operation (#7636)

* Revert "[ISSUE#5696] Fix auth server type (#7004)"

This reverts commit e3b7f0e7

* Revert "add derby database (#6996)"

This reverts commit fea9d727

* Revert "Add MySQL DataBase (#6968)"

This reverts commit 3c0508d2

* Revert "[ISSUE #5696] Add auth server implement (#6901)"

This reverts commit 76ac8434

* Move JwtAuthenticationTokenFilter to security package.

* refactor constants about auth.

* Solve conflicts.

* Add resource parser

* Do some refactor for IdentityContextBuilder

* Repackage some auth classes.

* For checkstyle

* Add SignType

* Add MockAuthPluginService for unit test.

* Add new ProtocolAuthService to replace AuthManager.

* Http request use new plugin.

* Http request use new plugin.

* Grpc request use new plugin.

* Remove AuthManager.java

* Add plugin and auth-plugin module, and move class into module.

* Move client spi to nacos-auth-plugin module

* Remove NamingResourceParser.java

* Remove ConfigResourceParser.java

* remove unused parseName in ResourceParser

* Use specified parser to parse resource when can't find parser by type.

* Repackage some class

* Move default auth impl from console to nacos-plugin-default-impl module.

* Move user controller to nacos-plugin-default-impl module.

* Move auth persistence to nacos-plugin-default-impl module.

* Move user to nacos-plugin-default-impl module.

* Move plugin config to nacos-auth-plugin-impl module.

* Remove unused constants

* Fix compile problem.

* For pmd.

* Fix unit test.

Co-authored-by: Wuyunfan-BUPT <30968107+Wuyunfan-BUPT@users.noreply.github.com>
Co-authored-by: onewe <admin@onew.me>
2022-01-28 17:26:42 +08:00
KomachiSion
49d19b17b0 Fix unit test. 2022-01-26 15:21:02 +08:00
KomachiSion
e2e819379c For pmd. 2022-01-26 14:01:27 +08:00
KomachiSion
1b5e422c6f Fix compile problem. 2022-01-26 13:58:29 +08:00
KomachiSion
6efb3ce846 Remove unused constants 2022-01-26 13:49:55 +08:00
KomachiSion
9020bb9d6e Move plugin config to nacos-auth-plugin-impl module. 2022-01-26 11:54:52 +08:00
KomachiSion
aba0facf90 Move user to nacos-plugin-default-impl module. 2022-01-26 10:05:39 +08:00