spinnaker / roer

A thin Spinnaker CLI
Apache License 2.0
45 stars 45 forks source link

Added support for IAP to roer #58

Open idiamant opened 2 years ago

idiamant commented 2 years ago

In order to work with roer using IAP, I've added this support.

It works either by setting a flag --iap and pasting the bearer token, or having the bearer token in environment variable $SPINNAKER_IAP_TOKEN.

In order to generate the token, there are several ways, either by using a service account JSON file, or by oauth web authentication with client ID and secret. It's out of this code's scope, and therefore not added.

idiamant commented 2 years ago

I know this repo isn't being maintained anymore, since roer is EOL, but I thought it may be of benefit to others too. e.g. https://github.com/spinnaker/roer/issues/56 - requested support for IAP long time ago.