升级Nacos 至 2.2.3 版本解决 raft 漏洞问题

This commit is contained in:
zhangdaiscott
2023-07-17 19:54:16 +08:00
parent 5273b81f94
commit 436bfbced9
3 changed files with 64 additions and 40 deletions

View File

@@ -7,11 +7,10 @@
<description>nacos启动模块</description>
<version>3.5.2</version>
<!-- Nacos2不支持springboot2.6.6 -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
<version>2.6.14</version>
<relativePath/>
</parent>
@@ -50,22 +49,22 @@
<dependency>
<groupId>org.jeecgframework.nacos</groupId>
<artifactId>nacos-naming</artifactId>
<version>2.0.4</version>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.jeecgframework.nacos</groupId>
<artifactId>nacos-istio</artifactId>
<version>2.0.4</version>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.jeecgframework.nacos</groupId>
<artifactId>nacos-config</artifactId>
<version>2.0.4</version>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.jeecgframework.nacos</groupId>
<artifactId>nacos-console</artifactId>
<version>2.0.4</version>
<version>2.2.3</version>
</dependency>
</dependencies>

View File

@@ -27,15 +27,21 @@ management:
nacos:
core:
auth:
#是否开启鉴权JeecgNacosApplication.enabled属性优先级更高
enabled: false
caching:
enabled: true
default:
token:
expire:
seconds: 18000
secret:
key: SecretKey012345678901234567890123456789012345678901234567890123456789
enabled: false
server:
identity:
key: example
value: example
plugin:
nacos:
token:
expire:
seconds: 18000
secret:
key: SecretKey01234567890123456789012345345678999987654901234567890123456789
system:
type: nacos
istio: