-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Change x509.certficate_managed #56159
Change x509.certficate_managed #56159
Conversation
@svenseeberg thank you for contribution! Could you please take a look at my review comment? |
@DmitryKuzmenko I will have a look at the tests. I have to admit I'm a little short on time though. |
* Use salt.utils.stringutils.to_str to convert pem entry to string.
393d6da
to
d6c552d
Compare
Two of my Debian Buster minions failed to refresh their certificates due to this. I rebased the branch to the current Not sure how to test this. The problem seems to be specific to Debian Buster. |
Oh it seems that these two nodes still used the versions packaged in the Debian main repos and the problem itself has been solved in current releases. I'll close the PR. |
Oh no, the problem persists after upgrading to the current release:
The change that comes with this PR definitely fixes the problem. |
It seems that this was now fixed with some other commits. With the newest version I can deploy minions without patching the |
Now this error is occuring on Ubuntu 18.04 nodes. |
It would be really cool to have this merged at some point. I need to manually fix the x509.py for each new minion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will require a changelog and test coverage to ensure this does not regress
I'll close the PR due to the rewrite: #58481 (comment) |
What does this PR do?
This change decodes a bytes variable to an utf-8 string before concatenating to another string.
What issues does this PR fix or reference?
On Python 3.7 I get the following error for
x509.certificate_managed
, which is fixed in this PR:Tests written?
[NOTICE] Bug fixes or features added to Salt require tests.
Please review the test documentation for details on how to implement tests into Salt's test suite.
No
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.