ossec: set permissions on gpg homedir and contents #3943
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
In bug #3928, problems with the permissions on the OSSEC gpg
keyring resulted in an error when attempting to import the OSSEC
public key.
This commit adds Ansible tasks to set the expected permissions
on the gpg homedir and its contents prior to attempting to import
the key
Fixes #3928.
note: some of this syntax i.e.
with_items
will need to get changed as part of #3891Testing
Follow STR in Rotating ossec key fails due to directory permissions on /var/ossec on mon server #3928 and ensure the error does not occur
Test that fresh installs continue to work with this change
Verify that the permissions I claim to be "the expected permissions" are indeed the right permissions
Deployment
People are hitting this bug in prod when running
securedrop-admin install
, this will resolve as part of the workstation update in 0.11Checklist
[heads up did not get a chance to run tests locally, relying on CI and manual testing]
If you made changes to the system configuration:
If you made non-trivial code changes: