Luzifer/ots

Feature request: possibility to revoke/burn a secret

mshedsilegx opened this issue ยท 8 comments

I would be helpful to be able to burn or revoke a secret immediately in case of error or mistake, to invalidate it right away.
Similar to the below.
image

If the secret is passphrase protected, the correct passphrase would need to be entered to revoke/burn the secret.

Well, just call the URL you got and retrieve it, it's immediately deleted from the server and therefore gone. (Deleting the secret as soon as it's retrieved once is a core feature of OTS.)

I agree, still I think it would more user friendly to be able to revoke a secret via a UI button, without having to view it.

Closing, as this feature is only a nice to have,

Closing, as this feature is only a nice to have,

Then why are you closing it, if you want to have it?

Hi Luzifer, I've had a few moments when I needed that button.
Let's say you pasted a wrong text into the form and created the secret. Afterwards you realize that you just pasted the wrong text into it.
So the next decision is up to the user - mostly I don't take the time to copy the link and call it so that the server forgets the information. I just leave it as it is, with the default expiry time to expire by itself. On my site this is seven days.
If there would be a button to destroy the information immediately, at least for me, I could see a benefit here.
But indeed, this is just nice to have and nothing more. It's really not important at all.
Just my 2 cents ๐Ÿ˜Š

I agree, that was my sentiment originally as well, just did not want to waste valuable development time on a trivial feature.

@mshedsilegx @HappyMan4 Please have a look at the attached PR (including screenshots) for the implementation draft of this feature.

That looks excellent, thank you for doing this.