Hi all! I am deploying DataHub on GKE and I want t...
# getting-started
a
Hi all! I am deploying DataHub on GKE and I want to put it behind GCP IAP. If I then also set up Google Authentication like the DataHub Doc detailed, the user would have to log in twice. So I want to skip OAuth, and simply use the JWT token added by IAP to identify individual users. I am wondering if DataHub has something that works with IAP, maybe similar to this https://github.com/GoogleCloudPlatform/jupyterhub-gcp-proxies-authenticator/blob/c[…]6b70e9005c52/gcpproxiesauthenticator/gcpproxiesauthenticator.py
b
Hi @agreeable-hamburger-38305. This is very interesting. I think it's definitely possible though today there's not a clear place to plug this in. We are currently rethinking how authentication works with the hopes of making it much more general purpose and pluggable. Once we implement that, we will be able to provide better guidance here 🙂
Yes!!
But the downside is...
You will all be sharing a single account
If that's alright with you, then you can easily disable authentication
(for now)
a
Great! Care to give me some pointers on how to do that?
b
Yep -- you can simply set the following env variable in
datahub-frontend
docker.env:
Copy code
AUTH_JAAS_ENABLED=false
AUTH_OIDC_ENABLED=false
a
Thanks! @big-carpet-38439 thankyou
Hi @big-carpet-38439 Is this the file? docker/datahub-frontend/env/docker.env I set the two env variables in there and restarted the docker containers but it doesnt look like its working
b
How are you deploying the docker containers? Ie. which command?
a
datahub docker quickstart
b
Ah I see!
So that uses a set of default environment variables, and won't catch the changes you've made
Please put those containers down and try this from the root directory of datahub
Copy code
cd docker && ./quickstart.sh
a
I am still getting the same results
@big-carpet-38439 I ran
datahub docker nuke
, changed the docker.env and ran
cd docker && ./quick start.sh
, but I still get redirected to the login page
b
Oops! I think we updated the quickstart script to also use default variables some time recently. Can you try
Copy code
docker-compose -p datahub \
    -f docker-compose.yml \
    -f docker-compose.override.yml \
    $CONSUMERS_COMPOSE $MONITORING_COMPOSE up
a
That worked!!!
b
yay!!!
l
Hi folks! I’ve created a feature request for this in our new portal - https://feature-requests.datahubproject.io/b/User-Experience/p/user-authentication-integration-with-gcp-iap