vmware-archive / salt-pack

Salt Package Builder
Apache License 2.0
55 stars 23 forks source link

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

Open dvandok opened 4 years ago

dvandok commented 4 years ago

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