Issue #10652 has been updated by Akira Tanaka.


curl, wget and apt-get supports storing passwords in .curlrc, .wgetrc, .netrc or apt.conf.

So users can store password in a file if environment variable is not appropriate.
Your patch only supports environment variable.
It encourages users to store passwords in a environment variabe even if it is not appropriate.

I think the missing piece is a library for password store for storing passwords in a file.
(The file should be possible to be encrypted.)

----------------------------------------
Feature #10652: Automatic detection of user and password from env
https://bugs.ruby-lang.org/issues/10652#change-50774

* Author: Rafael Silva
* Status: Closed
* Priority: Normal
* Assignee: Ayumu AIZAWA
* Category: lib
* Target version: Next Major
----------------------------------------
Get user and pass from http_proxy variable when specified, so that NET::HTTP can handle connections behind authenticated proxies automatically.

I'm new, so please correct me if this isn't the correct way to go.

Also, I've open a PR on github at [[https://github.com/ruby/ruby/pull/763]]

---Files--------------------------------
f17b3008197b81b8afaefb7de2ed43187620a1dc.patch.txt (1.07 KB)


-- 
https://bugs.ruby-lang.org/