-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ability to encrypt custom field / config arg data at rest #2648
Labels
Milestone
Comments
michaelbromley
added
@vendure/core
design 📐
This issue deals with high-level design of a feature
labels
Jan 25, 2024
michaelbromley
added a commit
that referenced
this issue
Feb 20, 2024
Exploring some ideas for #2648
michaelbromley
moved this from 📋 Backlog
to 🤔 Under consideration
in Vendure OS Roadmap
Mar 19, 2024
hey, i wanted to chime in, we did something similar (not for custom fields for on our entities where we had to store passwords for an external invoicing integration). We took leverage of the
|
@oroce thank you, that's a very useful example! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Some data which is stored as config args or custom fields might be sensitive and would benefit from being stored encrypted in the DB.
For instance, the API keys of a payment plugin.
Describe the solution you'd like
I will investigate the feasibility of a new property on custom fields and configurable operation args,
encrypt: true
which uses some kind of symmetric encryption using a secret key (provided by an env var) to encrypt/decrypt these values on save/load.Describe alternatives you've considered
Storing the values as env vars in the first place. This limits the utility of certain functions, e.g. we cannot then have channel-aware payment methods using different api keys for the same payment service.
The text was updated successfully, but these errors were encountered: