Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1229302 - /etc/puppet/hieradata/compute.yaml is world readable with plain text passwords
/etc/puppet/hieradata/compute.yaml is world readable with plain text passwords
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-puppet-elements (Show other bugs)
Director
Unspecified Unspecified
high Severity unspecified
: ga
: Director
Assigned To: James Slagle
Attila Fazekas
: Reopened, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-08 08:21 EDT by Attila Fazekas
Modified: 2015-08-27 01:49 EDT (History)
14 users (show)

See Also:
Fixed In Version: openstack-tripleo-puppet-elements-0.0.1-2
Doc Type: Bug Fix
Doc Text:
The os-apply-config command created /etc/puppet/hieradata with open permissions. The files in this directory contained passwords and tokens that could provide unauthorized access to the OpenStack installation. This fix sets /etc/puppet/hieradata as a root-owned directory with 0700 permissions. Only the root user can access /etc/puppet/hieradata, which provides a more secure installation.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-05 09:52:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 183509 None None None Never
OpenStack gerrit 198158 None None None Never
Red Hat Product Errata RHEA-2015:1549 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform director Release 2015-08-05 13:49:10 EDT

  None (edit)
Comment 5 James Slagle 2015-07-07 16:31:22 EDT
i'm unable to reproduce this using the provided images from 2015-06-26

it should have been addressed by:
https://review.openstack.org/183509

Steve, I commented on the upstream review, but I don't think changing the umask from 077 to 0077 actually makes any difference.

I think this was fixed by Derek's earlier patch and that just hadn't made it into the image builds when this was first reported on 2015-06-08
Comment 6 James Slagle 2015-07-07 16:34:12 EDT
note that https://review.openstack.org/183509 was in the 0.0.1 release of tripleo-puppet-elements and built into openstack-tripleo-puppet-elements-0.0.1-2
Comment 7 Steve Baker 2015-07-07 20:03:01 EDT
Permissions on /etc/puppet/hieradata look good now on puddle 2015-07-02-1.

I have abandoned the upstream change.
Comment 8 James Slagle 2015-07-08 15:04:12 EDT
qe: please retest this and confirm permissions are 0700 on /etc/puppet/hieradata on the overcloud nodes
Comment 10 Attila Fazekas 2015-07-15 09:47:43 EDT
Now I created a deployment with http://rhos-release.virt.bos.redhat.com/mburns/2015-07-13.1/images/ .

The n-cpu node seams ok.
[heat-admin@overcloud-compute-0 ~]$ ls -ld /etc/puppet/hieradata/
drwx------. 2 root root 4096 Jul 15 09:09 /etc/puppet/hieradata/
Comment 11 Mike Burns 2015-07-15 09:55:41 EDT
Atilla -- we should mark this verified, not closed currentrelease.
Comment 12 Attila Fazekas 2015-07-21 10:18:24 EDT
os-refresh-config creates the directory with 700 at the first run,
but it does not changes the permission if the  directory already exists with wrong permission.

The directory does not exists on the base images.
So, If anyone has a system installed from the old images, he needs to change permissions manually, the newly installed systems expected to be ok.
Comment 14 errata-xmlrpc 2015-08-05 09:52:53 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1549

Note You need to log in before you can comment on or make changes to this bug.