| Trees | Indices | Help |
|---|
|
|
Spacewalk Proxy broker specific handler code called by rhnApache.
Workflow is: Client -> Apache:Broker -> Squid -> Apache:Redirect -> Satellite
Broker handler get request from clients from outside. Some request (POST and HEAD) bypass cache so, it is passed directly to parent. For everything else we transform destination to localhost:80 (which is handled by Redirect handler) and set proxy as local squid. This way we got all request cached localy by squid.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
init with http request object
|
set connection variables
NOTE: self.{caChain,rhnParent,httpProxy*} are initialized
in SharedHandler
rules:
- GET requests:
. are non-SSLed (potentially SSLed by the redirect)
. use the local cache
. CFG.HTTP_PROXY or CFG.USE_SSL:
. use the SSL Redirect
(i.e., parent is now 127.0.0.1)
. NOTE: the reason we use the SSL Redirect if we
are going through an outside HTTP_PROXY:
o CFG.HTTP_PROXY is ONLY used by an SSL
redirect - maybe should rethink that.
. not CFG.USE_SSL and not CFG.HTTP_PROXY:
. bypass the SSL Redirect (performance)
- POST and HEAD requests (not GET) bypass both the local cache
and SSL redirect (we SSL it directly)
|
prep handler and check PROXY_AUTH's expiration.
|
read kickstart options from incoming url
URIs we care about look something like:
/ks/dist/session/2xfe7113bc89f359001280dee1f4a020bc/
ks-rhel-x86_64-server-6-6.5/Packages/rhnsd-4.9.3-2.el6.x86_64.rpm
/ks/dist/ks-rhel-x86_64-server-6-6.5/Packages/
rhnsd-4.9.3-2.el6.x86_64.rpm
/ks/dist/org/1/ks-rhel-x86_64-server-6-6.5/Packages/
rhnsd-4.9.3-2.el6.x86_64.rpm
/ks/dist/ks-rhel-x86_64-server-6-6.5/child/sherr-child-1/Packages/
rhnsd-4.9.3-2.el6.x86_64.rpm
|
GETs: authenticate user, and service local GETs. if not a local fetch, return None |
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:34 2020 | http://epydoc.sourceforge.net |