question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database Encryption

See original GitHub issue

Another requirement from the Discord Developer Terms is that the database information is encrypted at rest (should not be stored as plain-text in the database). When we migrate to MongoDB, I can recommend the use of mongoose with mongoose-encrypt to seamlessly implement this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
naomi-lgbtcommented, Feb 20, 2021

I rolled mongoose-encrypt into my own Discord bot. Remarkably easy to set up, and handles encryption+decryption automatically.

Some concerns:

  • Encrypted fields cannot be queried (I left only the serverID field decrypted on my data, as that’s how I index things).
  • the findAndUpdate and findOneAndUpdate methods of mongoose do not play well with the encryption. I personally use find, make the changes, then save.
0reactions
eddiejaoudecommented, Jul 3, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Database encryption - Wikipedia
Database encryption can generally be defined as a process that uses an algorithm to transform data stored in a database into "cipher text"...
Read more >
Types of Database Encryption Methods - N-able
With database encryption, an encryption algorithm transforms data within a database from a readable state into a ciphertext of unreadable ...
Read more >
Database (DB) Encryption - Everything You Need to Know
An encryption algorithm changes information into incomprehensible characters through a mathematical process. While other security tools protect a system ...
Read more >
Transparent data encryption (TDE) - SQL Server
Transparent data encryption (TDE) encrypts SQL Server, Azure SQL Database, and Azure Synapse Analytics data files. This encryption is known ...
Read more >
Database Encryption: Why and Where You Need to Have ...
Data encryption is a process of encoding the data. It is mainly a two-way function, which means encrypted data has to be decrypted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found