salt-pack icon indicating copy to clipboard operation
salt-pack copied to clipboard

bash completions of minion names do not work for non-root users

Open dvandok opened this issue 4 years ago • 0 comments

Trying to run salt as a non-root user works well as long as the user is listed in the publisher_acl in the master.conf. But the standard bash-completions shipped with salt 2019.2.4 on CentOS7 rely on the output of salt-key -l acc but this requires privileged access to /srv/salt/pki/master.

$ salt-key -l acc
Error: [Errno 13] Permission denied: '/etc/salt/pki/master/minions'

https://github.com/saltstack/salt-pack/blob/c334a309644d5428b20df06dd2e15784dfa768f3/file_roots/pkg/salt/2019_2_4/rhel7/sources/salt.bash#L30

dvandok avatar May 13 '20 14:05 dvandok