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

ossec: set permissions on gpg homedir and contents #3943

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

redshiftzero
Copy link
Contributor

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 #3891

Testing

  1. 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

  2. Test that fresh installs continue to work with this change

  3. 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.11

Checklist

[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:

  • I have written a test plan and validated it for this PR

In defect #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 proper permissions
on the gpg homedir and its contents prior to attempting to import
the key
Copy link
Contributor

@emkll emkll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've successfully reproduced the error in the associated ticket on a physical 0.10.0 instance. I've checked out this branch and ran the install command, the ossec key gets updated without the permissions error 🎉 .

Also did further testing as follows:

@redshiftzero
Copy link
Contributor Author

thanks for review!

@redshiftzero redshiftzero merged commit 8f7ffda into develop Nov 27, 2018
@redshiftzero redshiftzero deleted the 3928-ossec-gpg-homedir-permissions branch November 27, 2018 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rotating ossec key fails due to directory permissions on /var/ossec on mon server
2 participants