-
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
[Feature]: Salt-mine access restrictions / permission granularity #6437
Comments
Thanks for filing this. This is a great idea, and hopefully won't be too difficult to implement. =) |
Is there any update on this functionality and/or status on whether it's being actively developed or toyed with? |
no work for now from us at this time I am afraid. |
+1 for this feature |
+1 for this |
+1 for this feature |
+1 |
https://docs.saltstack.com/en/latest/ref/configuration/examples.html
|
That does cover the first half of the request. For me personally the 2nd half of the request would be the most useful. The ability to limit the infrastructure it pulls from. |
Well the docs are pretty limited, but the following oughta kinda work: mine_get:
mine-getters*.example.com:
- mine-pushers*.example.com:
- network.interfaces |
Would that enable the restriction on results? If they two servers (S1, S3) query for all minion IP's. I want S1 to only return other minions in department A (S1, S2, S4, S6, S8) and S3 to return only minions in department B (S3, S7, S9, S10). |
Once you set Buf if I understand your setup you should be able to do something like: mine_get:
*.dep-a.example.com:
- *.dep-a.example.com:
- network.ip_addrs6
*.dep-b.example.com:
- *.dep-b.example.com:
- network.ip_addrs6 Also note that the minion's mine call needs to use the exact same match to work. |
Update: NM, that syntax seems to work only on Publish for now :( |
thanks for that.. i think my setup is going to work against me.. all servers have the same naming scheme so based on that alone there isn't a differentiation.. I use the grain data to classify them.. I'll have to look and see if grain groupings can be added into the minion config and see if that works. |
Bear in mind that grains are delivered by the minions and are therefore not a good way to safely filter / pillar / group on. |
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. |
Problem
Salt-mine (http://docs.saltstack.com/topics/mine/index.html) is a new great tool in Salt. However, the acces to salt-mine authorization is all or nothing. A minion either has access to the mine or has no access.
Proposition
It would be really useful to have a permission mechanism which would:
and / or
The text was updated successfully, but these errors were encountered: