47ng / 47ng/prisma-field-encryption

Feature request: support Bytes fields

Aperta
#26 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
good first issue help wanted
Lingua principale
TypeScript
Stelle
306
Fork
40
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello!
It looks like only string fields are currently supported, but Prisma also supports a `Bytes` type: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#bytes
It seems natural that one would want to encrypt fields of this kind as well, are there any plans to support it?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The issue is about adding support for Prisma's Bytes field type to the encryption middleware. Start by examining the existing field type handling in the source code, likely in the encryption/decryption logic. Look for where string fields are processed and understand how the Prisma schema is interpreted. Check the Prisma documentation for Bytes type specifics. Adding support will involve modifying the type detection and the encryption/decryption functions to handle Buffer or Uint8Array data. Test by creating a model with a Bytes field and verifying encryption works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
backend, databases
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.