Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Heroku.from_key is silently overridden by .netrc #31

Closed
gabrtv opened this issue Mar 13, 2013 · 0 comments
Closed

Heroku.from_key is silently overridden by .netrc #31

gabrtv opened this issue Mar 13, 2013 · 0 comments

Comments

@gabrtv
Copy link
Contributor

gabrtv commented Mar 13, 2013

Reproduce Steps

Login using Heroku CLI as user1

gabriel@delta:~$ heroku login
Enter your Heroku credentials.
Email: user1@opdemand.com
Password (typing will be hidden): 
Authentication successful.

~/.netrc file is updated per usual.

Use Heroku.py to instantiate a session as user2

>>> h=heroku.from_key('key-for-user2')
>>> h.keys
[<key 'user1@user1s-machine.local'>]

D'oh it's using a session from user1 via .netrc even though we provided user2's key.

Worst part is it doesn't warn you. It just silently proceeds as the wrong user.

@gabrtv gabrtv closed this as completed Mar 13, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant