Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

.netrc file usage #876

Closed
keith opened this Issue · 10 comments

4 participants

@keith
Collaborator

The other day I noticed something awesome that Octokit (which as Fabio pointed out is included in Cocoapods) does. Which is grab (if you want it to) your Github credentials from your ~/.netrc file (more on netrc). It seems to use this netrc gem to do this and I think this would be awesome for pushing stuff up. Although with upcoming changes it might not be worth the time, just a thought.

@fabiopelosin

Interesting stuff!

@keith
Collaborator

It's quite useful. Mine looks like this:

machine api.heroku.com
  login keithbsmiley@gmail.com
  password somecrazystring
machine code.heroku.com
  login keithbsmiley@gmail.com
  password somecrazystring
machine api.github.com
  login keithbsmiley
  password sekretpassword

This way neither github nor heroku every ask me for anything. (I think Heroku actually added itself as well)

@fabiopelosin

Man you should use some numbers and uppercase characters in your passwords to increase their entropy.

@keith
Collaborator

@kylef
Owner

Since CocoaPods uses git which uses curl, it already supports this :) If you use CocoaPods for any http(s) repository which requires auth, it already works.

@kylef kylef closed this
@fabiopelosin

@kylef: @Keithbsmiley is part of the Core team. He just doesn't hang around the Campfire a lot.

In this tocket he was referring about using the netrc file for the upcoming authentication required for the web service that will be used by pod push. It will be similar to RubyGems because we need acess control by Pod.

However I confirm the closure of the ticket because if I recall correctly the system will use a revocable token instead of a password.

/c @alloy

@kylef
Owner

Oh sorry, I misunderstood this issue. There wasn't any mention of the web-service so I assumed it was for using private repositories in CocoaPods with a password (which works fine).

Please re-open if it's relevant for passwords

@fabiopelosin
@kylef kylef reopened this
@CocoaPodsBot CocoaPodsBot was assigned by keith
@CocoaPodsBot
Collaborator

@AhmadAlokush closed with reason "confirmed as closed by fab"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.