salt-pack
salt-pack copied to clipboard
bash completions of minion names do not work for non-root users
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