Content-Length: 418165 | pFad | http://github.com/saltstack/salt/pull/68113

C0 Fix logging of key changes to be consistent by barneysowood · Pull Request #68113 · saltstack/salt · GitHub
Skip to content

Fix logging of key changes to be consistent #68113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 3006.x
Choose a base branch
from

Conversation

barneysowood
Copy link
Collaborator

What does this PR do?

Fixes logging of master aes and session keys changes to be correct and consistent. This was useful when testing issues in #68085 to understand what is actually happening.

Also removes some duplication of code.

What issues does this PR fix or reference?

Debug logging for master AES and session keys was incomplete and inconsistent across AsyncAuth._authenticate() and SAuth.authenticate()

Previous Behavior

AsyncAuth._authenticate() logged both master AES and session key changes as "The master's aes key has changed".
SAuth.authenticate() didn't log anything.

New Behavior

Both functions consistently log:

  • "Got new master aes key." for a new master AES key
  • "The master's aes key has changed." for a change in master AES key
  • "The master's session key has changed." for a new session key.

The wording isn't ideal, but assuming that people may be used to those messages I didn't want to change too much.

Commits signed with SSH key?

Yes

Fixes logging of master aes and session keys changes to be correct and
consistent. Also simplifies the code and reduces duplication.
@barneysowood barneysowood marked this pull request as ready for review June 26, 2025 15:10
@barneysowood barneysowood requested a review from a team as a code owner June 26, 2025 15:10
@barneysowood barneysowood requested a review from dwoz June 26, 2025 15:11
@barneysowood
Copy link
Collaborator Author

@dwoz - if you aren't up for merging this before 3006.13, no worries - I can always bring it back at a later stage

Copy link
Contributor

@twangboy twangboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we get a changelog and some tests?

@dwoz
Copy link
Contributor

dwoz commented Jun 26, 2025

@dwoz - if you aren't up for merging this before 3006.13, no worries - I can always bring it back at a later stage

We staged 3006.13 last night so it didn't make it in. We can merge it when it's ready and it can still go into a release. We're pretty much capable of doing weekly releases now if we need them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-changelog needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/saltstack/salt/pull/68113

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy