curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Read ~/.netrc only once

From: Morten Kjærulff via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 25 May 2021 19:17:36 +0200

On Tue, May 25, 2021 at 5:40 PM Daniel Stenberg wrote:

> You could also provide the credentials using other means than netrc!

Yes, I could use -u --user, but `man curl`says "Such sensitive data
should be retrieved from a file instead or similar and never used in
clear text in a command line."

So back to .netrc or --netrc-file. But this might end up in backups or
could be seen by sysadmins.

Any other options?

That's why I wish --netrc-file <(cat ~/.netrc), but instead of cat
~/.netrc I would use
gpg --decrypt ...
or
echo "cat A.RACF.PROTECTED.DATASET" | ssh MY.GOOD.OLD.ZOS.HOST
Which I *guess*/*feel* is more safe.

/Morten
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-05-25