The argument to -S
is a Chef search query, which is normally used to select which nodes should be given access. name:
is not a valid query, but it's hard to tell if you meant that literally. You can also use the -A
flag (which, again, is used incorrectly above) to add individual users or clients by name (I know it says --admins
but it works with node names too).
As an infosec practitioner I am also obligated to warn you that use of the -S
search query option can be unsafe under certain attack models. Specifically a compromised node can change its own attributes such that the next time someone runs a vault refresh, the node is incorrectly given access. This isn't the worst of all possible security holes but just be aware of it.