You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.
Grains are controlled by the minion, so targeting sensitive data via grains is not secure. A compromised minion could modify its grains. The only grain that is safe is id, since the master enforces that the id grains must match the minion ID on the accepted key.
So the example:
"If a template contains a grain which evaluates to a list, it will be expanded into multiple policies. For example, given the template saltstack/by-role/{grains[roles]}, and a minion having these grains:
The minion will have the policies saltstack/by-role/web and saltstack/by-role/database."
Is not necessarily a secure way to target your secrets as a compromised minion could simply change its role in order to retrieve secrets it should not be able to access. I think there should be a warning next to this example that grains are controlled by minions and therefore insecure.
I think that a more appropriate support for targeting would be pillar data. Is that a possibility?
The text was updated successfully, but these errors were encountered:
Grains are controlled by the minion, so targeting sensitive data via grains is not secure. A compromised minion could modify its grains. The only grain that is safe is
id
, since the master enforces that theid
grains must match the minion ID on the accepted key.So the example:
"If a template contains a grain which evaluates to a list, it will be expanded into multiple policies. For example, given the template saltstack/by-role/{grains[roles]}, and a minion having these grains:
The minion will have the policies saltstack/by-role/web and saltstack/by-role/database."
Is not necessarily a secure way to target your secrets as a compromised minion could simply change its role in order to retrieve secrets it should not be able to access. I think there should be a warning next to this example that grains are controlled by minions and therefore insecure.
I think that a more appropriate support for targeting would be pillar data. Is that a possibility?
The text was updated successfully, but these errors were encountered: