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

fix: incorrect encryption string instructions #15086

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucasjohnston
Copy link

What does this PR do?

As outlined in #13290, any new calcom user following the .env example is unable to perform any administrative function as 2FA is required.

Because "latin1" is specified as the encryption/decryption method in lib/crypto.ts, using a base64 encoded string (as is currently suggested) results in a 44 length string, which breaks the 2FA process.

A cleaner solution would be to update crypto.ts directly, but this was already rejected in #13484 in favour of the ongoing refactor in #12698. This PR is a temporary fix until the larger refactor has been completed.

Mandatory Tasks

  • I have self-reviewed the code (A decent size PR without self-review might be rejected)
  • I have added a Docs issue here if this PR makes changes that would require a documentation change
  • I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)

Copy link

vercel bot commented May 17, 2024

@lucasjohnston is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label May 17, 2024
@graphite-app graphite-app bot requested a review from a team May 17, 2024 00:40
@github-actions github-actions bot added ❗️ .env changes contains changes to env variables authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in Low priority Created by Linear-GitHub Sync self-hosting labels May 17, 2024
Copy link
Contributor

github-actions bot commented May 17, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@lucasjohnston lucasjohnston changed the title Fix incorrect encryption string instructions fix: incorrect encryption string instructions May 17, 2024
Copy link

graphite-app bot commented May 17, 2024

Graphite Automations

"Add community label" took an action on this PR • (05/17/24)

1 label was added to this PR based on Keith Williams's automation.

"Add consumer team as reviewer" took an action on this PR • (05/17/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link
Contributor

github-actions bot commented May 17, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@Udit-takkar Udit-takkar requested a review from a team May 18, 2024 11:22
@Udit-takkar Udit-takkar added this to the v4.2 milestone May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in community Created by Linear-GitHub Sync ❗️ .env changes contains changes to env variables Low priority Created by Linear-GitHub Sync self-hosting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3060] JSON Error during login due to incorrect encoding on CALENDSO_ENCRYPTION_KEY
3 participants