Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug setting keys directory permissions #229

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

cdalvaro
Copy link
Owner

@cdalvaro cdalvaro commented Feb 28, 2024

Fixes an issue with salt-key and the generation keys directory.

When the keys directory is mounted as a host volume and the host system is macOS, salt-key cannot properly create the private keys.

This PR addresses this issue by creating keys inside a temporary directory and then moving them into the destination directory.

This PR fixes #226

@cdalvaro cdalvaro added the bug Something isn't working label Feb 28, 2024
@cdalvaro cdalvaro self-assigned this Feb 28, 2024
@cdalvaro cdalvaro force-pushed the bugfix/keys_directory_permissions branch 3 times, most recently from a8bd6cd to 1090910 Compare February 28, 2024 22:01
@cdalvaro cdalvaro force-pushed the bugfix/keys_directory_permissions branch 4 times, most recently from 4b938e5 to 882f9a5 Compare February 29, 2024 17:52
@cdalvaro cdalvaro marked this pull request as ready for review February 29, 2024 17:53
There is an issue related with salt-key and using a mounted directory as destination.

See issue Permission denied on start #226
@cdalvaro cdalvaro force-pushed the bugfix/keys_directory_permissions branch from 882f9a5 to 344d99a Compare February 29, 2024 19:10
@cdalvaro cdalvaro merged commit e8537b4 into main Feb 29, 2024
9 checks passed
@cdalvaro cdalvaro deleted the bugfix/keys_directory_permissions branch February 29, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission denied on start
1 participant