KANLON opened a new issue, #6433:
URL: https://github.com/apache/shenyu/issues/6433
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Current Behavior
method is AppAuthServiceImpl#updateAppSecretByAppKey 、
AppAuthController#updateSk
Updating the app secret via updateSk does not propagate the change to the
gateway immediately, so the gateway continues to use the old secret for
signature verification until a manual sync is triggered.
AppAuthServiceImpl#updateAppSecretByAppKey need modify , i will push a pr
later
```java
int count = appAuthMapper.updateAppSecretByAppKey(appKey, appSecret);
if (count > 0) {
AppAuthDO appAuthDO = appAuthMapper.findByAppKey(appKey);
if (Objects.nonNull(appAuthDO)) {
AppAuthData appAuthData = buildByEntity(appAuthDO);
eventPublisher.publishEvent(new
DataChangedEvent(ConfigGroupEnum.APP_AUTH,
DataEventTypeEnum.UPDATE,
Lists.newArrayList(appAuthData)));
}
}
return ShenyuAdminResult.success(count);
```
### Expected Behavior
After calling /updateSk the gateway take effect
### Steps To Reproduce
_No response_
### Environment
```markdown
ShenYu version(s):2.7.2-SNAPSHOT
```
### Debug logs
_No response_
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]