[Pkg] [OpenIndiana Distribution - Feature #4672] pkg(5) support for HTTP proxy configuration per-mirror

illumos project devnull at illumos.org
Fri Mar 7 10:24:23 UTC 2014


Issue #4672 has been updated by Jim Klimov.


I had a thread in discussion on this subject with some examples:
http://openindiana.org/pipermail/openindiana-discuss/2013-December/014618.html

My research of the problem boiled down to the description above.
----------------------------------------
Feature #4672: pkg(5) support for HTTP proxy configuration per-mirror
https://www.illumos.org/issues/4672

Author: Jim Klimov
Status: New
Priority: Normal
Assignee: OI PKG
Category: pkg (Image Packaging System)
Target version: 
Difficulty: Medium
Tags: needs-triage


The IPS infrastructure enables us to fetch packages from the Internet (requiring, in our case, requests to an http_proxy for hosts and zones running in a private LAN), as well as to run a mirror of OI repositories and/or our private package repositories in the LAN or even on a local host (requiring direct access).

Currently this seems managed by the http_proxy and https_proxy variables exported or undefined in the shell which executes the "pkg" client command, and influences all requests for this session . These variables are passed down to curl used to fetch the files. 

Due to this, mixed accesses (like origin in the internet with mirrors in the LAN or on a localhost) become problematic - one type of requests requires the proxy and others either don't require it putting superfluous load on the proxy, or straight can't use it (i.e. the proxy server's "localhost" does not serve IPS repositories).

The Oracle variant of IPS has several configuration options to cater for this both in the "pkg publisher" configuration as well as in SMF services responsible for package management, as can be seen here:
http://docs.oracle.com/cd/E26502_01/html/E29024/glqjr.html

I believe the pkg(5) project is downstreamed from Oracle open development, but at least as of oi_151a8 this command fails as undefined:
:; pkg set-publisher --proxy http://www-proxy -g http://pkg-server pub

So the RFE is to at least implement such per-publisher setting of optional proxy use (as well as, perhaps, a flag to always go direct and undefine any http(s)_proxy envvar if passed from the shell).


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the Pkg-team mailing list