[FIX] dms: fix access rules for better security#392
[FIX] dms: fix access rules for better security#392kobros-tech wants to merge 2 commits intoOCA:18.0from
Conversation
5d2860c to
91ff2d6
Compare
|
@pedrobaeza as long as it it a PR for a fix I assume, what should be the behaviour in portal? I may be not aware and hardly could be correct so some values could come by discussion. |
91ff2d6 to
623090a
Compare
|
First of all, thank you for trying to improve this module. Although I understand that these changes were already made previously in the other PR, it would have been more appropriate to discuss this in an issue to avoid making changes and spending effort on something that may not have the right approach. First of all and without trying to be rude, it is important to know in detail the functioning of the “permissions” in dms, the flexibility they have and the reason why they are like this, do you know it? I try to explain a little of how they work (up to v17) and some important clarifications.
The approach you propose (with followers in files) is not flexible or manageable, with an example of 10 files and 5 directories, it would be necessary to manage everything adding/deleting followers in all the files, besides that it would not give the flexibility to indicate the permissions (read/create/write/unlink), because the followers do not allow that. |
e44d015 to
83f95ea
Compare
Description video of the new feature: |
The cause of the new features can be shown in this example:`
` |
|
Reviewing the query examples, I don't see any problem, that is, it doesn't matter which domain you apply, the rule is always applied first with the domain that corresponds to your user, for that reason 36 files are always returned. The only exception is when you define False in the value, and it is intentional, due to dms/dms/models/dms_security_mixin.py Line 220 in da92eb7 |
all right lets work in parallel then we can meet at some point, on my side there is a connection module between dms and avatax exemption, and another between dms and sign_oca, so by applying them I will improve dms as the behaviour needs, and if there is a risk on security will appear. I am looking forward for seeing the migration you will introduce to 18.0 of dms. |
|
But then, these changes are not necessary, right? There is no security problem then, right? So you want me to make the migration to v18 that you have already started? Remember that we commented not to add these changes in that PR, otherwise, you can continue it if you want. |
yes, continue the way you like, I myself sometimes when I am not sure of one approach I make two and compare them in the end to finish with a single one. If you start you will find a security error in portal based on the same security xml from 17.0, but from my migration the error will disappear so that I complained of comparing boolean value to integer of user id, but I encourage you to try it yoursef. |
83f95ea to
444f5e4
Compare
444f5e4 to
03e523b
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |

based on migration to 18.0 PR #385 and focusing on updating security groups and rules for better functionality and privacy.
The value of this commit is to improve vunrable security layers of dms module for all groups:
There is now rules for tags/categories for internal users based on being followers to specific files, and also they can access files and their dirs via potal page.
We did not review the ability to upload a file in sale and delete it there whether it gets locked by some other user yet.
I hope to find people come here and cooperate for their sake and all community sake and for the public good.