encrypt logto passwords clientside#5
Conversation
COMPARE TO
|
| Name | Diff |
|---|---|
| packages/console/src/containers/ConsoleContent/Sidebar/hook.tsx | 📈 +190 Bytes |
| packages/core/src/index.ts | 📈 +330 Bytes |
| packages/core/src/middleware/koa-security-headers.ts | 📈 +336 Bytes |
| packages/core/src/routes/experience/verification-routes/password-verification.ts | 📈 +13 Bytes |
| packages/core/src/utils/password-decryption.ts | 📈 +3.5 KB |
| packages/experience/package.json | 📈 +64 Bytes |
| packages/experience/src/constants/env.ts | 📈 +109 Bytes |
| packages/experience/src/hooks/use-encryption.ts | 📈 +2.74 KB |
| packages/experience/src/hooks/use-password-sign-in.ts | 📈 +300 Bytes |
| packages/experience/src/pages/SignIn/index.tsx | 📈 +89 Bytes |
| packages/experience/src/utils/crypto.ts | 📈 +662 Bytes |
| packages/experience/vite.config.ts | 📈 +108 Bytes |
| packages/schemas/src/types/interactions.ts | 📈 +273 Bytes |
| pnpm-lock.yaml | 📈 +145 Bytes |
Summary of ChangesHello @kyrregjerstad, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements client-side encryption for Logto passwords. It introduces new utilities and hooks for encrypting passwords using RSA-OAEP with a server-provided public key and seed on the client, and corresponding server-side logic to decrypt these passwords using a private key. The API payload for password verification is updated to accommodate the encrypted password and seed. This enhances security by preventing plain-text password transmission. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces client-side password encryption, a significant security enhancement. The implementation looks solid, but there are a few critical areas that need attention, particularly around configuration and logging practices. Addressing these will make the feature more robust and secure.
No description provided.