Skip to content
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

Salt-key can control minion keys on salt syndic nodes #60871

Open
DesireWithin opened this issue Sep 13, 2021 · 2 comments
Open

Salt-key can control minion keys on salt syndic nodes #60871

DesireWithin opened this issue Sep 13, 2021 · 2 comments
Assignees
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@DesireWithin
Copy link

Is your feature request related to a problem? Please describe.
I want to use restapi to control minion keys on salt syndic.
The most common case is when a server is decommissioned. I also want to delete its key on salt syndic.
But I don't know who is this server's master. So salt-key can also control salt syndic is much more convenient

Describe the solution you'd like
salt-key can issued command to salt syndic, just like salt command do.

Describe alternatives you've considered
My workaround is run salt-key command on each salt syndic.
I'm using local client, create a nodegroup named masters contains all syndic nodes.
So command will be something like this:

curl -sS localhost:8000/run \
    -H 'Accept: application/x-yaml' \
    -H 'Content-type: application/json' \
    -d '[{
        "client": "local",
        "tgt": "masters",
        "tgt_type": "nodegroup"
        "fun": "cmd.run",
        "kwarg": {"cmd: 'salt-key -d  salt_keys -y'"}
        "username": "saltdev",
        "password": "saltdev",
        "eauth": "auto"
    }]'
@DesireWithin DesireWithin added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Sep 13, 2021
@welcome
Copy link

welcome bot commented Sep 13, 2021

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@frogunder
Copy link
Contributor

@saltstack/team-core Do you have any inputs on this?

@frogunder frogunder added this to the Approved milestone Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

No branches or pull requests

2 participants