From 0aaf0646ca1d74870aa8f65d1a7ed3b6a46d4ed9 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sat, 16 Sep 2023 20:23:23 -0700 Subject: [PATCH] debug --- salt/master.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/salt/master.py b/salt/master.py index f1212645c647..2f720b79468b 100644 --- a/salt/master.py +++ b/salt/master.py @@ -167,6 +167,9 @@ def rotate_secrets( if event: event.fire_event({f"rotate_{secret_key}_key": True}, tag="key") + if "cluster_aes" in SMaster.secrets: + log.error("Rotate Cluster AES key %s", SMaster.secrets.get("cluster_aes"]["secret"].value) + log.error("Rotate Master AES key %s", SMaster.secrets["aes"]["secret"].value) if opts.get("ping_on_rotate"): # Ping all minions to get them to pick up the new key @@ -761,6 +764,9 @@ def start(self): ), "reload": salt.crypt.Crypticle.generate_key_string, } + if "cluster_aes" in SMaster.secrets: + log.error("Cluster AES key %s", SMaster.secrets.get("cluster_aes"]["secret"].value) + log.error("Master AES key %s", SMaster.secrets["aes"]["secret"].value) log.info("Creating master process manager") # Since there are children having their own ProcessManager we should wait for kill more time.