Skip to content

Commit

Permalink
[Sankalp|tasdik] updated README for dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasdik Rahman committed Feb 13, 2019
1 parent 1ff320c commit e01fe75
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
out/
*.swp
.idea/*
iap.conf.toml
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Read more about IAP here https://cloud.google.com/blog/products/identity-securit
1. Setup an https Google load balancer
2. Enable IAP (Security > Identity Aware Proxy)
All eligible proxies will be listed here. IAP toggle will enable Oauth Bearer token based auth.
3. After enabling and selecting this you can add previously created service accounts to this proxy.
3. After enabling and selecting this you can add previously created service accounts to this proxy.
4. Download this service account credentials and configure as a param in in install

## Install as a Service
Expand All @@ -22,5 +22,39 @@ Read more about IAP here https://cloud.google.com/blog/products/identity-securit

`helm install gojektech-incubator/iap-auth --name=some-svc-iap --set iapHost=https://somehost,clientId=someclientid,secretName=some-svc-sa-creds`

## Dev setup

For go1.11, you need an environment variable set to enable [go modules](https://github.com/golang/go/wiki/Modules)

```
$ export GO111MODULE=on
```

Assuming you are in the directory `iap_auth`

### Running the tests

```
$ make setup
$ make test
```

### Building the binary

```
$ make build
# the compiled binary would be inside iap_auth/out/
```

### Running the binary

```
$ make copy-config
$ make setup
$ ./out/iap_auth server
```

## Install as a Sidecar

TODO

0 comments on commit e01fe75

Please sign in to comment.