Add apache config support for /pypi#400
Open
pavanshekar wants to merge 1 commit intotheforeman:masterfrom
Open
Add apache config support for /pypi#400pavanshekar wants to merge 1 commit intotheforeman:masterfrom
pavanshekar wants to merge 1 commit intotheforeman:masterfrom
Conversation
ekohl
reviewed
Apr 20, 2026
4c15466 to
5c1b52b
Compare
ekohl
requested changes
Apr 20, 2026
5c1b52b to
3e9a182
Compare
qcjames53
approved these changes
Apr 21, 2026
qcjames53
left a comment
There was a problem hiding this comment.
I was (finally) able to get this to run as a part of foreman-installer on a clean dev environment. After pulling changes and re-running installer, the Apache config successfully includes the new endpoint:
[vagrant@centos9-pulp-upgrade ~]$ sudo cat /etc/httpd/conf.d/05-foreman-ssl.conf
...
<Location "/pypi">
RequestHeader unset X-CLIENT-CERT
RequestHeader set X-CLIENT-CERT "%{SSL_CLIENT_CERT}s" env=SSL_CLIENT_CERT
RequestHeader set X-FORWARDED-PROTO expr=%{REQUEST_SCHEME}
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/pypi timeout=600
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/pypi
</Location>
The unit test passes and looks fit for purpose. The source seems good to me as well. Approving changes. @ekohl how are things looking to you?
ekohl
approved these changes
Apr 22, 2026
Member
ekohl
left a comment
There was a problem hiding this comment.
Looks good. I've kicked off CI to see if it agrees.
Author
|
CI is failing. What should I do to resolve this? |
|
The failure in test setup looks unrelated to me. |
Member
|
I think this is due to voxpupuli/gha-puppet@fd171ad. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Apache config support for
/pypiin puppet-pulpcoreFixes: SAT-44474
Changes
use_pypi_routeparameter topulpcore::plugin::python(default:true)<Location "/pypi">block that proxies topulpcore-apiserviceGenerated Apache Config
When
use_pypi_route => true(default), the module should generate: