Open bmann opened 3 years ago
It's probably equally easy to do this by username. Two ways:
fission app publish --as bmann # stateless
fission user switch bmann # stateful
We need to hold key maps in all cases, and this use case in anticipated in the current YAML. Feels like magic, but not hard to actually do!
That said, I'm not totally clear really how useful this is. The actual underlying feature is more likely to be organizations, yes?
I wanted to document it, but it’s essentially a work around of having multiple accounts.
Not organizations — although I could of course add boris, bmann, borismann etc all into an organization to get the permissions.
I'm unsure that we actually want to support this use case, since we can delegate subresource access to others. Changing the title!
So, something like
fission app publish --key /path/to/key
.I currently keep my various account keys in the
~.config/fission/key
folder and just switch them by renaming.This is an advanced user feature -- but it's already a lot better than manually copying keys around, where I can then have the tools to create aliases like
bmannpublish
or something.But at the same time, I never do this for Github keys, but maybe that's because I can't actually use this key to authenticate against their API, only to git itself?