Right – we don’t allow authenticated proxies to be set per-origin because the cleartext proxy authentication details would get stored in /var/pkg, which would be bad.

The best solution at the moment, is to set the $http_proxy environment variable at the time you’re running the command (though that exposes the authentication details to anyone who can run ‘pargs -e’ on the pkg(1) process, but it’s the best we have right now)

Ideally, we’d have a way to securely store the proxy information – we don’t as yet, but it’s something I’d like to add.