Skip to content
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

Use JSON field & validator instead of save to db? #31

Open
ninadicara opened this issue Jan 15, 2021 · 0 comments
Open

Use JSON field & validator instead of save to db? #31

ninadicara opened this issue Jan 15, 2021 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@ninadicara
Copy link
Collaborator

Need to explore this but there is definitely a possibility that there are security risks associated with saving the key values of the json file directly to the database. At the moment the JSON keys must match the expected database fields to prevent just submitting random json, but is it possible for someone to submit a value that compromised the database ?

Would it be safer to use a JSON field, that is validated against a JSON schema before being saved?
https://stackoverflow.com/questions/37642742/django-postgresql-json-field-schema-validation

@ninadicara ninadicara added the question Further information is requested label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants