salt icon indicating copy to clipboard operation
salt copied to clipboard

Rename salt keys

Open wichert opened this issue 13 years ago • 49 comments

On rare occasions I need to repurpose a server for something else. It would be practical if it was possible to rename the key.

wichert avatar Aug 26 '13 10:08 wichert

Ah, so you want a way to change the ID without generating a new key and having to accept it (and delete the key), correct?

This would definitely be useful -- not sure how hard it would be to implement, though.

basepi avatar Aug 26 '13 22:08 basepi

Correct: I only want to change the id. The current workaround seems to be a) delete old key on master, b) delete key on minion, c) change id on minion and generate a new key for it, d) accept new key on master.

wichert avatar Aug 27 '13 07:08 wichert

Yep, I think you're correct, that's the only way to do it currently.

This would be really cool if we could do it in a secure, consistent way.

basepi avatar Aug 27 '13 19:08 basepi

It would be also cool when running in something like AWS EC2 without static IP and specified minion's id, because if we will reload our EC2 instance, it will have a new hostname, based on dynamically assigned IP.

malinoff avatar Aug 28 '13 07:08 malinoff

Is the id really tied to the IP address? Based on my understanding of the documentation the ID is just an identifier for the crypto key which is used to identify the remove machine.

wichert avatar Aug 28 '13 07:08 wichert

ID is hostname by default. I was talking about Amazon Web Services, which hostname depends on it's ip address.

malinoff avatar Aug 28 '13 08:08 malinoff

If the minion ID is set on the configuration file it survives machine restarts.

Pedro Algarvio @ phone

----- Reply message ----- De: "Dmitry Malinovskiy" [email protected] Para: "saltstack/salt" [email protected] Assunto: [salt] Rename salt keys (#6896) Data: qua, Ago 28, 2013 09:36 ID is hostname by default. I was talking about Amazon Web Services, which hostname depends on it's ip address.

— Reply to this email directly or view it on GitHub.

s0undt3ch avatar Aug 28 '13 11:08 s0undt3ch

:+1:

kamaln7 avatar Dec 08 '13 16:12 kamaln7

This would be great to have. :+1:

sepulworld avatar Mar 17 '14 03:03 sepulworld

:+1:

gtmacdonald avatar Apr 17 '14 01:04 gtmacdonald

:+1:

Nucklez avatar Apr 23 '14 19:04 Nucklez

:+1: I was just searching for this feature :)

webwurst avatar Sep 26 '14 08:09 webwurst

:+1:

Vehyla avatar Jan 06 '15 21:01 Vehyla

:+1:

sirshurf avatar Feb 10 '15 14:02 sirshurf

:thumbsup:

marclop avatar Feb 27 '15 13:02 marclop

:+1:

MrMarvin avatar Mar 05 '15 10:03 MrMarvin

:+1:

tkent-xetus avatar Mar 25 '15 16:03 tkent-xetus

+1

ghostsquad avatar Apr 26 '15 06:04 ghostsquad

:+1:

iamfil avatar Jun 02 '15 16:06 iamfil

:+1:

badele avatar Aug 14 '15 12:08 badele