Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

refactor(security): make send/recv message allowed when mandatory_auth is false #639

Merged
merged 2 commits into from
Oct 12, 2020

Conversation

levy5307
Copy link
Contributor

In previous implementation, if message is not in white list and negotiation is not succeed, the message is not allowed to send or receive. But this will produce error when rolling update.

For example: the enable_auth configuration of client session is false, and it is true on the server session side. So client session will not do negotiation work with server session. And when the server session receives one message from this client session , it will close this session connection because this message is not in white list and the negotiation is not succeed.

In this pr, I make send/recv message allowed when mandatory_auth is false, so the message will be received successully in this situation. This will make our rolling update work to proceed smoothly.

@acelyc111 acelyc111 merged commit 537b810 into XiaoMi:master Oct 12, 2020
@levy5307 levy5307 deleted the mandatory-auth branch October 12, 2020 08:23
levy5307 added a commit to levy5307/rdsn that referenced this pull request Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants