-
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
x509 Documentation -> mine.send not working #56142
Comments
@svenseeberg First I could see in the doc is: |
That is expected. There was no change.
It looks like the example is using the "legacy" version of The previous state also uses |
Ah sorry, M2Crypto is installed on the minion. The states that require M2Crypto work well. That means the CA is being generated. Just to be sure I now installed M2crypto on the Salt master as well, but that does not change the outcome. I guess what @OrangeDog is saying is correct. That is also what the blog entry on backbeat.tech says about |
After looking at https://docs.saltstack.com/en/develop/topics/releases/2017.7.0.html#state-module-changes, I figure that
However, I can't figure out how to combine it with |
It think it should be
|
Sadly I cannot get your example to work. What does work currently is this: I set the minion config to
And add the state
which then returns
But combining this with So I was thinking of a different approach. Should it be possible to add the
But the minion log says
|
So I finally solved the issue. However, I guess there is room for improvement. I'm now setting the mine functions via Pillar:
After changing the Pillar, I run Then I can actually see that the function is there:
and returns the desired result:
AFAICT the important takeaway is Is there any better way of refreshing the mine_functions on the minion than restarting the daemon? |
I guess the best solution is this one (based on the example on https://docs.saltstack.com/en/latest/ref/states/all/salt.states.x509.html):
and for
If this is suitable, I can create a pull request for the documentation. |
* The used module.run syntax is outdated. Replace with minion.d configuration that now includes mine_functions. * Rename the minion.d/signing_policies.conf to x509.conf to represent the broader scope of the file.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
The issue still exists, a suggestion for a fix is still open as a pull request. |
Thank you for updating this issue. It is no longer marked as stale. |
Working on getting this issue updated and reviewed as well as the PR, it may take a day to do that, or longer, but working to get 👀 on both. Thank you! |
* The used module.run syntax is outdated. Replace with minion.d configuration that now includes mine_functions. * Rename the minion.d/signing_policies.conf to x509.conf to represent the broader scope of the file.
Got the same issue following this aswell, but managed to make it work by replacing
|
Description of Issue
I'm trying to set up a CA based on the example provided in https://docs.saltstack.com/en/latest/ref/states/all/salt.states.x509.html and also using https://backbeat.tech/blog/using-saltstack-for-internal-ssl-certificates/ as a reference.
AFAICT the documented mine.send for the ca.crt is not working. I find two issues:
The following arguments are missing: m_name
Setup
The setup is basically the example provided in the documentation with no changes.
Steps to Reproduce Issue
Follow the documentation.
Versions Report
The text was updated successfully, but these errors were encountered: