Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'netrc' rather than requiring password entry #21

Open
orome opened this issue Sep 27, 2015 · 5 comments
Open

Use 'netrc' rather than requiring password entry #21

orome opened this issue Sep 27, 2015 · 5 comments

Comments

@orome
Copy link

orome commented Sep 27, 2015

Could this (miraculous) tool be tweaked so that it uses netrc? I'd like to avoid having to enter my password (which I can't recall or easily type) each time I use it.

@ndmitchell
Copy link
Owner

I'm a Windows user, so have no idea about netrc. What does it give me? How does it work? Can you run netrc to get the password back in plain text? If not, how do I pass the password on to Hackage?

I'm happy to take a pull request, as long as it continues to work for people who don't have netrc configured.

@orome
Copy link
Author

orome commented Sep 27, 2015

I'm not much of an expert either. It pulls credentials from a file. E.g., curl ... --netrc doesn't need a username or password to work. I'm not enough of an expert to generate a pull request, but I'll have a look and see if it turns out to be simple. If I were you, I'd reject it though, since it's a security thing.

@ndmitchell
Copy link
Owner

I'm not averse to calling curl with --netrc, and if it fails, trying again with a password request. I can't see how that is harmful (I ask for the password in less situations, which seems better to me - I'd rather people didn't type their password into prompts I wrote!).

@ndmitchell
Copy link
Owner

If you report that --netrc to curl and no password works thats enough information for me to give it a whirl, as long as you can test the result (although pull requests are always most welcome!)

@orome
Copy link
Author

orome commented Sep 27, 2015

Cool. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants