-
Notifications
You must be signed in to change notification settings - Fork 15
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
Incorporate a model's identity also in its ekey #8
Conversation
This reverts commit 2776210. The chained lookup works only when the base model being queried also inherits from the EncryptedIDModel. For example, if Foo inherits from EncryptedIDModel, and another model Bar has a foreign key to Foo. Then Bar.objects.get(foo__ekey='xxx') works only if Bar also inherits from EncryptedIDModel.
8dc93e0
to
75b9b34
Compare
This will ensure that model instances belonging to different models, but having the same pk, shouldn't share an ekey.
Hi! Why support for related field query reverted? |
@jatinderjit, please explain to @Mystic-Mirage. Hey @Mystic-Mirage, we are facing some problem at work, we will resolve it and put it back. Do |
@Mystic-Mirage During a chained lookup - The tests were working for But if we have a third model We've made another change to make |
@jatinderjit, I see. Thanks for details! |
@jatinderjit, it would be helpful if you can create a branch with a test that fails that me and @Mystic-Mirage, and probably others can take a shot at fixing. |
This will ensure that instances with same pk, but belonging to different
models, won't share an ekey.
Also change key length from 24 to 32 (AES-196 to AES-256).