huaweicloud / spring-cloud-huawei

Spring Cloud Huawei is a framework that makes it easier and productive to develop microservices with Spring Cloud.
https://github.com/huaweicloud/spring-cloud-huawei/wiki
Apache License 2.0
520 stars 223 forks source link

cross engine authentication failed at dual-az servicecomb engine #1387

Closed chengyouling closed 1 month ago

chengyouling commented 2 months ago

现象: 当Servicecomb双AZ容灾引擎都打开RBAC认证时,与微服务相同AZ引擎异常情况下,微服务切换到对端引擎出现RBAC认证失败

原因: 两个引擎的私钥不一样,导致对端引擎校验token失败

解决方案: 当相同AZ引擎连接都不可用时,刷新token缓存,重新调用对端引擎生成新的token