Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INLONG-7883][Manager] Invalidate user session when deleting user #7884

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

fuweng11
Copy link
Contributor

Prepare a Pull Request

Motivation

Invalidate user session when deleting user.

Modifications

Invalidate user session when deleting user.

Copy link
Contributor

@vernedeng vernedeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@healchow
Copy link
Member

We need to consider a way to manage user information in a distributed manner. After deleting a user, all sessions in the Manager service will be invalidated.

My idea is, without the use of three-party components, can we cache user info in the memory of the Manager service, synchronize it from the DB regularly, and remove the session when the user data in the DB is found to be invalid.

In this way, all Manager services can be synchronized within a certain period of time.

@dockerzhang dockerzhang merged commit f75f06b into apache:master Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve][Manager] Invalidate user session when deleting user
4 participants