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

allow auth credentials to be stored outside of API scripts #2

Open
anthonysomerset opened this issue Jan 26, 2012 · 1 comment
Open

Comments

@anthonysomerset
Copy link

at the moment we have to put the following at the top of any beanstalk API scripts:

Beanstalk::API::Base.setup(
  :domain   => "subdomain",
  :login    => "username",
  :password => "password"
)

it would be good if this could be abstracted out, so that the gem reads the credentials from a file (say ~/.beanstalk) and inserts it automatically

this could be extended if the .beanstalk file could contain multiple auth credentials with something like

Beanstalk::API::Base.setup(
  :account   => "<an account tag assigned by user>",
)

where the beanstalk file has some kind of structure (maybe yaml) to store domain, user and pass pairs

this would help improve the security of deploy scripts and also allows users to put scripts in version control without exposing auth credentials of a specific user and also allows each user to run api tasks as there user (eg deploys etc)

@dsabanin
Copy link
Contributor

dsabanin commented Feb 7, 2012

We plan to support better authentication method soon, like OAuth or similar, so using login/password for API access soon will become obsolete. In the meantime I'm afraid you will need to store/retrieve the passwords manually with a custom script.

I'm sorry for not answering sooner.

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