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

Formula fighting for GPG socket permissions #96

Open
tacerus opened this issue Dec 3, 2023 · 0 comments
Open

Formula fighting for GPG socket permissions #96

tacerus opened this issue Dec 3, 2023 · 0 comments
Labels
infrastructure-formula Everything related to the infrastructure formula

Comments

@tacerus
Copy link
Member

tacerus commented Dec 3, 2023

The infrastructure.salt.master state sets file permissions for /etc/salt/gpgkeys/** to 0600, which should be good practice.
Unfortunately some other tool (GPG or Salt?) sets the S.gpg-agent* socket permissions back to 0700 - leading to a "back and forth" whenever the formula state is applied, and prevents a state.test run from returning fully green.
I do not want to implement an exception for this in the formula as I'm not aware of any reason for Unix sockets to be executable.
It should be examined which software is setting the permissions to 0700 and if there's a way to prevent it.
On my Tumbleweed workstation the stock GnuPG creates the S.gpg-agent socket with mode 0600.

@tacerus tacerus added the infrastructure-formula Everything related to the infrastructure formula label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure-formula Everything related to the infrastructure formula
Projects
None yet
Development

No branches or pull requests

1 participant