yuki / myVault

A web interface for HashiCorp Vault which allow to edit secrets with a Markdown editor
https://yuki.github.io/myVault/
GNU General Public License v3.0
0 stars 0 forks source link

Add option to know if a secret is being editing #19

Closed yuki closed 6 years ago

yuki commented 6 years ago

Because there is no way to know if a secret is being editing, we must create something to control this.

The idea is to “lock” the secret when someone wants to edit it. When someone clicks on “edit” button, we will lock the secret. To lock it, the best way to do it is to have a “locked_secrets” path or a secret where will be saved the secret that are locked.

If a secret is locked, the edit button Wii be disabled and there should be a message saying that the secret is locked by someone.

To unlock the secret, the person that is editing it, must unlock it. How? A button? That when it’s clicked, it closes the editor page... it could works.