-
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
Mine minion acl master #55760
Merged
Merged
Mine minion acl master #55760
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
340cd8d
Removed mine_get from salt.utils.minions (as used only by salt.runner…
github-abcde ced6556
Moved code from salt.states.module:_call_function to salt.utils.funct…
github-abcde 44a2e03
Enabled Aluminium. Edited 2-letter variable that pylint did not agree…
github-abcde da29e15
Rewritten most of salt.modules.mine. Moved generic functions out to s…
github-abcde 5525864
Added minion-side ACL checks to _mine_get. Minions get no data if the…
github-abcde d463e3f
Added unittests.
github-abcde c98609a
Added documentation for the salt mine new function definition format …
github-abcde f1e8079
Reverted new variable name current_data (and removed typo).
github-abcde a011198
Replaced kwargs with func_args.
github-abcde 2ae0f96
Merged named kwargs into **kwargs as it interferes with positional ar…
github-abcde c41bdeb
Added "parse_function" to make "call_function" more readable.
github-abcde 8cc6d22
Fixed test that since 717bfb38da gets a different error.
github-abcde ee59024
Added Sodium release notes. Updated modules.mine docstrings.
github-abcde 4d61da5
Added logging of denied mine requests.
github-abcde 9885f8e
call_function: Fixed incorrect error on missing arg.
github-abcde 7e260ae
Added unittests to avoid regression for issue 42270. Rewritten most t…
github-abcde 9f5639a
Restore code additions that were lost during rebase-to-master
github-abcde 8590040
Fix typo
github-abcde f4fb1aa
Merge branch 'master' into mine-minion-acl-master
github-abcde 4f4c562
Remove function_definition format deprecation warnings
github-abcde bfee1c8
Update documentation
github-abcde fd480b0
Merge branch 'master' into mine-minion-acl-master
github-abcde d34fa64
Merge branch 'master' into mine-minion-acl-master
github-abcde bd8b63e
Remove broad exception catching
github-abcde fc62085
Merge branch 'master' into mine-minion-acl-master
github-abcde 9318139
Merge branch 'master' into mine-minion-acl-master
github-abcde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
:orphan: | ||
|
||
==================================== | ||
Salt Release Notes - Codename Sodium | ||
==================================== | ||
|
||
|
||
Salt mine updates | ||
================= | ||
|
||
Syntax update | ||
------------- | ||
|
||
The syntax for defining salt functions in config or pillar files has changed to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also needs updating There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in bfee1c8 |
||
be equal to the syntax used in :py:mod:`module.run <salt.states.module.run>`. | ||
This means that if you supply the mine_function as a dict, or as a list with dicts | ||
that contain more than exactly one key, you will get deprecation warnings. | ||
|
||
Minion-side ACL | ||
--------------- | ||
|
||
Salt has had master-side ACL for the salt mine for some time, where the master | ||
configuration contained `mine_get` that specified which minions could request | ||
which functions. However, now you can specify which minions can access a function | ||
in the salt mine function definition itself (or when calling :py:func:`mine.send <salt.modules.mine.send>`). | ||
This targeting works the same as the generic minion targeting as specified | ||
:ref:`here <targeting>`. The parameters used are ``allow_tgt`` and ``allow_tgt_type``. | ||
See also :ref:`the documentation of the Salt Mine <mine_minion-side-acl>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The old format will still be supported. Please remove the until.... bit.
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.
Updated in bfee1c8