otomi-core icon indicating copy to clipboard operation
otomi-core copied to clipboard

Deleting otomi-welcome secret in Vault also deletes team folder

Open staticvoid255 opened this issue 2 years ago • 4 comments

Recently had a user point this out to me and was able to replicate:

  1. Enable Vault
  2. Create a team
  3. Go to the Vault folder for that team
  4. Delete the otomi-welcome secret
  5. Team folder disappears

Workaround is currently to delete the team and recreate, but this is not ideal

staticvoid255 avatar Sep 13 '22 07:09 staticvoid255

Is that a problem? The user should know Vault and be able to add a secret by setting the correct path that holds the team id. Just document it in otomi.io and point to Vault docs for specifics.

Morriz avatar Sep 15 '22 20:09 Morriz

Maybe windows users are thinking folders but what you see in Vault are mere paths. If no secret exists with the team path in it, why would it show anything?

What I don't like is the fact that our links break when pointing to a team with no secrets, but again, we are merely facilitating usage of Vault the best we can. We don't have to spend a lot of effort on these edge cases imo. It is just how Vault works. "

If all we can do is create a dummy secret (what we do now) to make our links work and a user erases it, fine. Let them create secrets by following Vault's help docs.

Morriz avatar Sep 15 '22 20:09 Morriz

Folders/paths is just semantics, at minimum what we can do is change the name of the otomi-welcome secret to something that indicates that it shouldn't be deleted.

staticvoid255 avatar Sep 19 '22 08:09 staticvoid255

Perhaps we could rename the Otomi-welcome secret to do-not-remove-me or keep-me-always.

j-zimnowoda avatar Sep 20 '22 13:09 j-zimnowoda