IAP: Identity Aware Proxy
Read more about IAP here
- Setup an https Google load balancer
- Enable IAP (Security > Identity Aware Proxy) All eligible proxies will be listed here. IAP toggle will enable Oauth Bearer token based auth.
- After enabling and selecting this you can add previously created service accounts to this proxy.
- Download this service account credentials and configure as a param in in install
- Add service account to IAP and download the json for service account credentials.
- Create this kube secret
kubectl create secret generic some-svc-sa-creds --from-file=sa.json="serviceaccountfiledownloadedfromgcp.json"
- Install as a service
helm install gojektech-incubator/iap-auth --name=some-svc-iap --set iapHost=https://somehost,clientId=someclientid,secretName=some-svc-sa-creds
For go1.11, you need an environment variable set to enable go modules
$ export GO111MODULE=on
Assuming you are in the directory iap_auth
$ make setup
$ make test
$ make build
# the compiled binary would be inside iap_auth/out/
$ make copy-config
$ make setup
$ ./out/iap_auth server
TODO