-
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
[BUG] x509.certificate_managed TypeError when using append_certs #58481
Comments
Thank you for the PR! I will try to get this triaged quickly! |
Dirty quickfix until patch arrives;
|
I'm not sure what "Needs Testcase" mean, but: salt/ca/init.sls (this state was working). when we tried this state, we had the bug. the workaround was very helpful, thanks a lot! :-) hope this helps? |
the label is applied to the PR and am simply copying it here - the PR will need a test case to be merged into the code base. We started requiring unit/integration tests on all PRs in 2018. We hold Test Clinics on Tuesdays and Thursday via Twitch the schedule is in that link as well. I hope that helps @7meis |
Faced this issue too, any chance that core team fix this? |
Something changed recently, we're now hitting this issue with 3000.9 where it's been working as expected for months
|
The source of this problem comes from specifically this line which was updated in 2018, probably just after a lot of these tutorials were written. The problem is because it returns bytes, not a string, and this isn't handled in the places where "get_pem_entry" is called from. I haven't written a PR for this yet, just started investigating it and tracked back down through the processes. |
This is still an issue. |
Please fix! Still an issue:
|
There is a PR for this: #56159 However, I have not much time for writing test cases. If anyone is willing to contribute, feel free. |
Fwiw, the current |
Awesome news. I think I'll close my PR then and wait for the new module and then migrate. |
Closing this issue as this is fixed in the new module. Please open an issue with details if this is not the case. |
Description
Creating certificate chains, ie. making one file of multiple certificates fails with x509 module.
Setup
Basic localized master/minion setup with the following state:
cert.sls
Steps to Reproduce the behavior
Expected behavior
The certificates are appended correctly.
Versions Report
salt --versions-report
``` Salt Version: Salt: 3001.1-481-gf534d4de9aDependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.2
libgit2: Not Installed
M2Crypto: 0.36.0
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 1.0.0
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.9.8
pygit2: Not Installed
Python: 3.8.5 (default, Sep 5 2020, 10:50:12)
python-gnupg: Not Installed
PyYAML: 5.3.1
PyZMQ: 19.0.2
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: arch rolling n/a
locale: utf-8
machine: x86_64
release: 5.8.9-arch2-1
system: Linux
version: Arch Linux rolling n/a
Additional context
A simple type conversion fixes this, and shouldn't break anything. I'll submit a pull request soon.
The text was updated successfully, but these errors were encountered: