As a user, I can restrict a Distribution to serve a particular scheme
A user wants to configure specific repositories to serve via http, others via https, and yet others via both. The use case for https is that people want security. The use case for http is that some clients may not support https.
Add a field named
BaseDistribution so it's available to all subclassed Distribution types. This is a choice field that accepts one of 3 values:
http - Only serve the request if the scheme is 'http' https - Only serve the request if the scheme is 'https' any - Serve all requests regardless of the scheme <----- this is the default
Use the X-Forwarded-Proto header so Pulp can know the scheme being served in cases where TLS occurs before the reverse proxy call to Pulp. If the header is not present, the current request scheme is the one assumed.
Please register to edit this issue