-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3519 from alibaba/develop
Upgrade to 1.3.2
- Loading branch information
Showing
161 changed files
with
3,691 additions
and
3,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Here is for bug reports and feature requests ONLY! | ||
If you're looking for help, please check our mail list、WeChat group and the Gitter room. | ||
Please try to use English to describe your issue, or at least provide a snippet of English translation. | ||
我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 | ||
--> | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Acutally behavior** | ||
A clear and concise description of what you actually to happen. | ||
|
||
**How to Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. Centos] | ||
- Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1] | ||
- Module [e.g. naming/config] | ||
- SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Here is for bug reports and feature requests ONLY! | ||
If you're looking for help, please check our mail list、WeChat group and the Gitter room. | ||
Please try to use English to describe your issue, or at least provide a snippet of English translation. | ||
我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 | ||
--> | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Old issue template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Here is for bug reports and feature requests ONLY! | ||
If you're looking for help, please check our mail list、WeChat group and the Gitter room. | ||
Please try to use English to describe your issue, or at least provide a snippet of English translation. | ||
我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 | ||
--> | ||
|
||
## Issue Description | ||
|
||
Type: *bug report* or *feature request* | ||
|
||
### Describe what happened (or what feature you want) | ||
|
||
|
||
### Describe what you expected to happen | ||
|
||
|
||
### How to reproduce it (as minimally and precisely as possible) | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
### Tell us your environment | ||
|
||
|
||
### Anything else we need to know? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
address/src/main/java/com/alibaba/nacos/address/auth/AddressServerAuthManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 1999-2018 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.alibaba.nacos.address.auth; | ||
|
||
import com.alibaba.nacos.core.auth.AccessException; | ||
import com.alibaba.nacos.core.auth.AuthManager; | ||
import com.alibaba.nacos.core.auth.Permission; | ||
import com.alibaba.nacos.core.auth.User; | ||
|
||
/** | ||
* Address server auth manager. | ||
* | ||
* <p>For #3091, Only implement an empty auth manager so that address server can startup.</p> | ||
* | ||
* @author xiweng.yy | ||
*/ | ||
public class AddressServerAuthManager implements AuthManager { | ||
|
||
@Override | ||
public User login(Object request) throws AccessException { | ||
User result = new User(); | ||
result.setUserName("nacos"); | ||
return result; | ||
} | ||
|
||
@Override | ||
public void auth(Permission permission, User user) throws AccessException { | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...c/main/java/com/alibaba/nacos/address/configuration/AddressServerSpringConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 1999-2018 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.alibaba.nacos.address.configuration; | ||
|
||
import com.alibaba.nacos.address.auth.AddressServerAuthManager; | ||
import com.alibaba.nacos.core.auth.AuthManager; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* Address server spring configuration. | ||
* | ||
* @author xiweng.yy | ||
*/ | ||
@Configuration | ||
public class AddressServerSpringConfiguration { | ||
|
||
@Bean | ||
@ConditionalOnMissingBean(value = AuthManager.class) | ||
public AuthManager getAuthManager() { | ||
return new AddressServerAuthManager(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.