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

Replace user/pass with sessionId after successful login #81

Closed
wants to merge 1 commit into from

Conversation

dominikl
Copy link
Member

Fixes #79 .
After successful login the username and password will be replaced by the sessionId, so that the password is not held in memory any longer. With the sessionId as username/password it is still possible to re-connect after a connection loss without having the password.
It only partially addresses the issue. There's no point in replacing the password String with char[] unless it can be done everywhere in the code. But when calling the Java API the method requires a String anyway.

@dominikl
Copy link
Member Author

dominikl commented Sep 1, 2023

--exclude Maybe this caused the failing integration tests?

@dominikl
Copy link
Member Author

dominikl commented Sep 1, 2023

Indeed this PR causes the integration test failure. I'll close it again. Due to the whole re-connection logic in the gateway it's just not possible to get rid off the password after login.

@dominikl dominikl closed this Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove password from memory after login
1 participant