innernet icon indicating copy to clipboard operation
innernet copied to clipboard

Confusion about deleting a peer

Open himekifee opened this issue 3 years ago • 2 comments

Hi, this project is amazing and thanks for your guy's work. I'm kinda confused about the security reason for not being able to delete a peer. I accidentally created a peer and activated that. For now, I'm not able to do anything except for removing the whole cidr to reuse that address. What's specific reason is that preventing the use of old addresses?

himekifee avatar Apr 13 '22 15:04 himekifee

There's a workaround for this: you can rename the peer, then disable it. Doing so frees up the original name to be reused on a new address. I've found it most convenient to rename a peer to a uuid, since it's unique and I don't have to overthink it.

conorsch avatar Feb 14 '23 00:02 conorsch

Hello, what if we add delete as a soft delete that performs a rename to a random name and disable it?

eos175 avatar Jul 22 '23 18:07 eos175