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] ownership and permissions on conf files #835

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Apr 26, 2020

Pull Request (PR) description

  • Set owner of config directories to rabbitmq user rather than root
  • Set group of config directories explicitly to rabbitmq, and set setgid bit
  • Set more restrictive permissions on the SSL directory
  • Update expectations, and test file permissions in acceptance tests

This is a narrower version of #796 (@dhoppe)
This does have some security implications, since when the file is owned by root, if the application is compromised, the rabbitmq user still may not be able to modify configuration files; with these changes, it would.

I believe that changing the ownership this way should be safe even on older RabbitMQ versions. However, would appreciate some eyes and / or actual testing of this, as I'm not in a good position to do extensive validations beyond the acceptance tests.

This Pull Request (PR) fixes the following issues

Fixes #703
Closes #796
Fixes #813

Narrower version of voxpupuli#796

* Set owner of config directories to rabbitmq user rather than root
* Set group of config directories explicitly to rabbitmq, and set setgid
bit
* Set more restrictive permissions on the SSL directories
* Update expectations, and test file permissions in acceptance tests
it { is_expected.to be_directory }
it { is_expected.to be_owned_by 'rabbitmq' }
it { is_expected.to be_grouped_into 'rabbitmq' }
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

think this is the right place for these to live?
seems sensible to test these in the acceptance tests one way or another, I think, right?

@bastelfreak bastelfreak merged commit 77b0033 into voxpupuli:master Apr 27, 2020
@bastelfreak bastelfreak added the bug Something isn't working label Apr 27, 2020
@wyardley wyardley removed the bug Something isn't working label Jul 9, 2020
@wyardley wyardley deleted the wyardley-703 branch May 19, 2024 17:48
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.

breaks /etc/rabbitmq ownership under ubuntu Owner of /etc/rabbitmq
3 participants