Skip to content

Failed to persist keys as they are not strings #36066

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

Open
zblzbl1991 opened this issue May 23, 2025 · 1 comment
Open

Failed to persist keys as they are not strings #36066

zblzbl1991 opened this issue May 23, 2025 · 1 comment

Comments

@zblzbl1991
Copy link

zblzbl1991 commented May 23, 2025

Description:

When I enabled E2EE and logged into the system, the browser console displayed the error shown in the screenshot. I checked the e2e.fetchMyKeys API, and the response data was:

{"success":true}

There was no public_key or private_key. Then, I checked the users table, and those fields were also missing.

Image

Image

According to the documentation, it is described as follows:

When a user logs in, the client auto-generates an encryption password and prompts the user to save it. This password generates a secure 256-bit AES-CBC encryption key called the “Master Key.” The Master Key is central to encrypting and decrypting the user’s private key.

Upon initial login, the system did not generate the expected private_key and public_key. What might be causing this issue? Are there manual allocation methods available?

Steps to reproduce:

Expected behavior:

Actual behavior:

Server Setup Information:

  • Version of Rocket.Chat Server:
  • License Type:
  • Number of Users:
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version:
  • Operating System:

Additional context

Relevant logs:

@reetp
Copy link

reetp commented May 25, 2025

Server Setup Information:

No one will look if you don't do the basics and fill this out properly.

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

No branches or pull requests

2 participants