Actions
Task #1459
closedStory #1150: As a user, I can lazily fetch repositories
Update SELinux rules for lazy sync
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:
Description
Lazy sync introduces several new WSGI applications, processes, files, etc. SELinux rules need to be written to support lazy.
The following processes are new:
- squid
- I expect this to already have an SELinux policy somewhere and we probably don't need to do anything.
- pulp_streamer
- Currently set to run as the 'apache' user.
- Launches a twistd application in /srv/pulp/streamer.tac
- Its systemd unit and init script can be found in the streamer package in pulp for more information
- Currently runs in the 'system_u:system_r:unconfined_service_t:s0' context
- Reads a configuration file at '/etc/pulp/streamer.conf'
- Communicates with MongoDB
In addition to those processes, there are two new WSGI applications:
- streamer_auth.wsgi
- Reads '/etc/pulp/server.conf'
- Loads the RSA public key specified in the 'authentication' section, 'rsa_pub' value in above config
- content.wsgi
- Reads '/etc/pulp/server.conf'
- Loads the RSA private key specified in the 'authentication' section, 'rsa_key' value in above config
- calls `os.path.realpath` on provided file paths. These links will be in /var/www/pub/<something> and should resolve to something in /var/lib/pulp/content
Related issues
Actions
Adds pulp-streamer SELinux policy
closes #1459 https://pulp.plan.io/issues/1459