salt-key doesn't handle PermissionError exception when moving keys #67666
Replies: 3 comments
-
@eliasp Thanks for the report. From a user experience perspective this would be a good thing to have in place. It would be new functionality so marking as a new feature. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Description of Issue
When the user executing
salt-key
doesn't have the necessary permissions to move the key files in the PKI directory to their destination,salt-key
silently ignores those errors.It's not about how to properly set those permissions (
permissive_pki_access
etc), but about not letting the user know about this issue - so that's mostly about the UX here.Setup
permissive_pki_access
is not (yet) set toTrue
Steps to Reproduce Issue
Change the permissions of Minion keys in the PKI dir so the user executing
salt-key
is unable to move them.Execute an operation like
salt-key -A
as this user.Using
pdb
clearly shows the exception:But my quickly hacked together attempt to rectify ended up nowhere and had zero effect - maybe someone else can take it from here and fix this:
Versions Report
Beta Was this translation helpful? Give feedback.
All reactions