Bug 1918487 - Create secure Pulp 3 deployment layout on disk
Summary: Create secure Pulp 3 deployment layout on disk
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.9.0
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-20 20:48 UTC by Stephen Wadeley
Modified: 2021-04-21 13:25 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:25:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman-installer pull 583 0 None closed Refs #30423 - Migrate Pulp media directory 2021-01-25 15:27:26 UTC
Github theforeman puppet-pulpcore pull 115 0 None closed Fixes #30423 - Change the application layout 2021-01-25 15:27:26 UTC
Github theforeman puppet-pulpcore pull 138 0 None closed Set docroot to pulpcore_static 2021-01-25 15:26:43 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:25:54 UTC

Description Stephen Wadeley 2021-01-20 20:48:44 UTC
Description of problem:

I cannot find a trace of secure Pulp 3 deployment layout

Version-Release number of selected component (if applicable):

Sat6.9 snap 9

Actual results:
A Pulp group exists:

[root@dhcp-2-237 ~]# getent group pulp

pulp:x:1000:apache

No settings.py file is created under /etc/pulp/:

[root@dhcp-2-237 ~]# grep -r settings.py /etc/pulp/

[root@dhcp-2-237 ~]#

[root@dhcp-2-237 ~]# cat /etc/pulp/

content/ repo_auth.conf server/ server.conf streamer.conf vhosts80/

No services found:

[root@dhcp-2-237 ~]# systemctl cat pulpcore-api.service

No files found for pulpcore-api.service.

[root@dhcp-2-237 ~]# systemctl cat pulpcore-content.socket

No files found for pulpcore-content.socket.

[root@dhcp-2-237 ~]# systemctl cat pulpcore-content.service

No files found for pulpcore-content.service.


Expected results:

the above pulpcore-content

Comment 2 Stephen Wadeley 2021-01-25 19:58:41 UTC
Hello

Testing on Sat6.9 Snap 10

Now we can see settings.py under `/etc/pulp/`:
[root@dhcp-3-104 ~]# ls /etc/pulp/
content  repo_auth.conf  server  server.conf  settings.py  streamer.conf  vhosts80
[root@dhcp-3-104 ~]# 


root@dhcp-3-104 ~]# systemctl cat pulpcore-api.service
# /etc/systemd/system/pulpcore-api.service
[Unit]
Description=Pulp API Server
After=network.target
Requires=pulpcore-api.socket

[Service]
Type=notify
Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
Environment="PULP_SETTINGS=/etc/pulp/settings.py"
User=pulp
Group=pulp
WorkingDirectory=/var/lib/pulp
RuntimeDirectory=pulpcore-api
ExecStart=/usr/libexec/pulpcore/gunicorn pulpcore.app.wsgi:application \
          --access-logfile -
ExecReload=/bin/kill -s HUP $MAINPID
ProtectSystem=full
PrivateTmp=yes
PrivateDevices=yes

SyslogIdentifier=pulpcore-api

# This provides reconnect support for PostgreSQL and Redis. Without reconnect support, if either
# is not available at startup or becomes disconnected, this process will die and not respawn.
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

[root@dhcp-3-104 ~]#  systemctl cat pulpcore-content.socket
# /etc/systemd/system/pulpcore-content.socket
[Unit]
Description=Pulp Content App socket

[Socket]
ListenStream=/run/pulpcore-content.sock
SocketUser=apache
SocketMode=0600

[Install]
WantedBy=sockets.target
[root@dhcp-3-104 ~]# 


[root@dhcp-3-104 ~]#  systemctl cat pulpcore-content.service
# /etc/systemd/system/pulpcore-content.service
[Unit]
Description=Pulp Content App
Requires=pulpcore-content.socket
After=network.target

[Service]
Type=notify
Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
Environment="PULP_SETTINGS=/etc/pulp/settings.py"
User=pulp
Group=pulp
WorkingDirectory=/var/lib/pulp
RuntimeDirectory=pulpcore-content
ExecStart=/usr/libexec/pulpcore/gunicorn pulpcore.content:server \
          --worker-class 'aiohttp.GunicornWebWorker' \
          -w 2 \
          --access-logfile -
ExecReload=/bin/kill -s HUP $MAINPID
SyslogIdentifier=pulpcore-content

# This provides reconnect support for PostgreSQL and Redis. Without reconnect support, if either
# is not available at startup or becomes disconnected, this process will die and not respawn.
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

[root@dhcp-3-104 ~]#

Comment 9 errata-xmlrpc 2021-04-21 13:25:36 UTC
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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313


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