cloudfoundry/credhub-cli

Aliasing/saving credhub targets

aegershman opened this issue · 4 comments

As a platform operator, I would like to context switch between multiple credhub environments.

I often find myself needing to switch between credhub servers. Instead of having to log in and out of them, I would like a mechanism similar to how the bosh-cli has bosh -e <env> to allow switching between environments. Or how Concourse's fly cli has different targets to choose from

e.g.,

credhub -t ci get -n /concourse/blah/...
credhub -t sandbox-bosh-oss get -n /blah/.../
credhub -t dev-opsman get -n /blah/.../

Thanks for your time and consideration

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158859261

The labels on this github issue will be updated when the story is started.

That sounds like a good idea to me. ^ @crawsible

I'm too dumb to be able to implement this myself, but just want to reaffirm that I think it would be a good idea 😉

I don't say that trying to demand someone else do it-- maybe it'll be years, or until I teach myself golang-- just wanted to affirm it so the idea doesn't get thrown out as too far stale.

This does seem like a good idea. We would love to do this, but at this time it is not a priority. We are going to leave it open because we do this it would be a good thing to add if someone got the time.