Announcing passhelpr: Getting your passwords from 1) env var, 2) keychain, 3) prompt

Unfortunately, I sometimes still have to auth against APIs that only do password and username (basic auth).

This works alright interactively, but becomes thorny on servers and in the cloud.

So I've build a little wrapper package {passhelpr} around {keyring} and {getPass}, which automatically gets your password, in that order:

  1. from a (secure) environment variable (useful on servers, cloud)
  2. your system keychain via {keyring}
  3. a (masked) prompt via {getPass}

It's still early days, I hope didn't miss something too obvious.

Let me know what you think.