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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue
When the user executing
salt-keydoesn't have the necessary permissions to move the key files in the PKI directory to their destination,salt-keysilently ignores those errors.It's not about how to properly set those permissions (
permissive_pki_accessetc), but about not letting the user know about this issue - so that's mostly about the UX here.Setup
permissive_pki_accessis not (yet) set toTrueSteps to Reproduce Issue
Change the permissions of Minion keys in the PKI dir so the user executing
salt-keyis unable to move them.Execute an operation like
salt-key -Aas this user.Using
pdbclearly 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