-
Notifications
You must be signed in to change notification settings - Fork 210
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
Set the correct owner and permissions for SSL certificate and key #1370
Conversation
ef53919
to
4394f62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update the version in the metadata.rb otherwise the cookbook won't get uploaded correctly.
194355c
to
1d68b7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable. If we wanted we could maybe do permissions 640
with the owner as root and the group as opscode, but I think that is a bit more confusing and doesn't add too much benefit.
i think that makes sense, everything else is owned by root |
1d68b7f
to
d46c210
Compare
This is a follow up to #1366 and #1368. This patch will set the owner of the ssl certificate and key to the user that is running rabbitmq/nginx. In #1366, we discovered that rabbitmq was expecting certs to be in the nginx directory, however that wasn't necessarily the case when the ssl certificate was not generated by private-chef-cookbooks. In these cases, the rabbitmq management interface would be completely broken as the certs we asked it to use were not there. After fixing that, #1368 was required because the custom certificate that was being set for the accpetance environment was owned by root and had the permissions 600, which meant the opscode user could not read it. Rabbitmq does not start as root like nginx, so rabitmq was unable to read the certificate. While #1368 got our environment working, I suspect others may run into a similar issue unless we explicitly set the owner and permissions on the files to what we expect. Signed-off-by: Jay Mundrawala <[email protected]>
This is now set correctly when running chef-server-ctl reconfigure Signed-off-by: Jay Mundrawala <[email protected]>
Signed-off-by: Jay Mundrawala <[email protected]>
Signed-off-by: Jay Mundrawala <[email protected]>
d46c210
to
6e29bf7
Compare
This is a follow up to #1366 and
#1368.
This patch will set the owner of the ssl certificate and key to the
user that is running rabbitmq/nginx. In #1366, we discovered that
rabbitmq was expecting certs to be in the nginx directory, however
that wasn't necessarily the case when the ssl certificate was not
generated by private-chef-cookbooks. In these cases, the rabbitmq
management interface would be completely broken as the certs we
asked it to use were not there. After fixing that, #1368 was required
because the custom certificate that was being set for the accpetance
environment was owned by root and had the permissions 600, which meant
the opscode user could not read it. Rabbitmq does not start as root like
nginx, so rabitmq was unable to read the certificate. While #1368 got
our environment working, I suspect others may run into a similar issue
unless we explicitly set the owner and permissions on the files to what
we expect.