Red Hat Bugzilla – Bug 820624
[RFE] Have PostgreSQL only listen on 127.0.0.1 instead of 127.0.0.1 and 0.0.0.0
Last modified: 2015-01-04 16:59:24 EST
+++ This bug was initially created as a clone of Bug #819611 +++ Description of problem: SAM 1.0 uses the PostgreSQL database. By default it listens on localhost (good) and all network IP's (bad). SAM only needs to talk to PostgreSQL locally, removing the network listening from all IP's would significantly reduce the attack surface of PostgreSQL with no impact to the SAM product. Assuming SAM keeps the config files in the normal locations simply edit: /var/lib/pgsql/data/postgresql.conf and ensure the line listen_addresses = 'localhost' is present. How reproducible: Always Steps to Reproduce: 1. Install SAM 2. netstat -vatn - postgresql is listneing on 0.0.0.0:5432 3. Actual results: Expected results: Additional info: NOT sure if this will apply to CFSE as I'm not clear if CFSE will support external databases (like Satellite) please vet and close if not applicable.
Yeah, this is valid request I guess. But I am testing it right now if it does not hurt us. Candlepin use PGSQL too, not sure if they both connect to localhost.
fixed in katello.git in commit aa6286b
# VERIFIED Fixed. there is no: --- tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 16940/postmaster checked on: --- katello-configure-1.1.9-6.el6cf.noarch katello-1.1.12-12.el6cf.noarch
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. http://rhn.redhat.com/errata/RHSA-2012-1543.html