Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 17, 2023
1 parent a362b13 commit 0aaf064
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions salt/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 0aaf064

Please sign in to comment.