You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow user to unlock a tree that has been locked for editing by another #3231
As my orginization is working through a migration from 0.8x to 1.2.x we have come across a potential vulnerability. One of my co-admins and I were discussing this. While we see the need to lock a tree for editing by a single person we can see how this would be a major risk. For example, say there is a rouge employee that due to the nature of their job they have to have admin rights. It would be possible for them to lock every tree for editing then remove their account and quit via no call no show. This would essentially render the entire tree structure unusable. Would it be possible to create a privilege that would allow a few select accounts to unlock trees that are already locked so that in the event of something like this the tree structure can be recovered?
I'm not sure whether such functionality exists or not, I'd have to take a look tomorrow. Certainly, I do not recall a privilege for it, but there may be a CLI method. If not, we should certainly look to enhance that in 1.3. Until it's decided one way or the other, I'm going to tag unverified as I don't just want to slap the enhancement tag on unnecessarily.
I'm not saying it has to be a privilege that can be set. Perhaps it may be easier to set a sunset on the lock. For example, if a tree is locked for 2 hours check to see if the editing page is still open, if it is not open auto unlock or maybe if a tree is locked for editing for say greater than 12 hours auto unlock it. I just know we stumbled across a situation that brought this conversation up and I wanted to pass it along as it seemed a valid concern and based on our testing it could be a problem. I do however concede that our testing is GUI based only up to this point. If you find a way, even if it is only through command line then I am all ears.
changed the title [-]Ability to unlock a tree that has been locked for editing by another account.[/-][+]Allow user to unlock a tree that has been locked for editing by another[/+]on Apr 5, 2020
Activity
netniV commentedon Feb 4, 2020
I'm not sure whether such functionality exists or not, I'd have to take a look tomorrow. Certainly, I do not recall a privilege for it, but there may be a CLI method. If not, we should certainly look to enhance that in 1.3. Until it's decided one way or the other, I'm going to tag unverified as I don't just want to slap the enhancement tag on unnecessarily.
RustedKnight commentedon Feb 5, 2020
I'm not saying it has to be a privilege that can be set. Perhaps it may be easier to set a sunset on the lock. For example, if a tree is locked for 2 hours check to see if the editing page is still open, if it is not open auto unlock or maybe if a tree is locked for editing for say greater than 12 hours auto unlock it. I just know we stumbled across a situation that brought this conversation up and I wanted to pass it along as it seemed a valid concern and based on our testing it could be a problem. I do however concede that our testing is GUI based only up to this point. If you find a way, even if it is only through command line then I am all ears.
Fixing Issue #3231
TheWitness commentedon Mar 14, 2020
Resolved.
[-]Ability to unlock a tree that has been locked for editing by another account.[/-][+]Allow user to unlock a tree that has been locked for editing by another[/+]