Skip to content

feat: new Cipher and tg.users table and router#17

Merged
toto04 merged 11 commits intomainfrom
user-table
Oct 1, 2025
Merged

feat: new Cipher and tg.users table and router#17
toto04 merged 11 commits intomainfrom
user-table

Conversation

@lorenzocorallo
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings September 30, 2025 17:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the encryption utilities and adds a new Telegram users feature. The changes include replacing the direct encryption functions with a new Cipher class that uses salt-based key derivation, and introducing a complete tg.users table with corresponding API endpoints.

  • Replaces simple encrypt/decrypt functions with a salt-based Cipher class for improved security
  • Adds new tg.users table and router with encrypted user data storage
  • Updates version numbers across packages

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
backend/src/utils/encrypt.ts Removed old encryption utility functions
backend/src/utils/cipher.ts Added new Cipher class with salt-based key derivation
backend/src/routers/tg/users.ts Added new router for Telegram users with encryption/decryption
backend/src/routers/tg/messages.ts Updated to use new Cipher class instead of direct encrypt/decrypt
backend/src/routers/tg/permissions.ts Minor schema fix for error union type
backend/src/db/schema/tg/users.ts Added database schema for users table
backend/drizzle/ Database migration files for new users table
package.json files Version bumps to 0.12.0

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@toto04 toto04 merged commit cfd424b into main Oct 1, 2025
1 check passed
@toto04 toto04 deleted the user-table branch October 1, 2025 23:39
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.

2 participants