https://flyte.org logo
#flyte-on-gcp
Title
# flyte-on-gcp
j

Jonas G

03/21/2024, 1:20 PM
Hey, this is probably a duplicate question but i was not able to find a solution from previous questions here. I have flyte-core deployed on gke with the gcp oidc/consent screen auth enabled and nginx. This works for local commands and browser authentication just fine. Now i try to write a python API that can execute workflows in the cluster. (API is not running in the cluster) How do i manage the authentication here ? I found https://pypi.org/project/flytekitplugins-identity-aware-proxy/ but that would mean switching ingress etc. I also tried
Copy code
export FLYTE_CREDENTIALS_CLIENT_ID=GCP-OAUTH-ID
export FLYTE_CREDENTIALS_CLIENT_SECRET=GCP-OAUTH-SECRET
export FLYTE_CREDENTIALS_AUTH_MODE=basic
but i couldn't get this to work Thx in advance.
d

David Espejo (he/him)

03/22/2024, 4:03 PM
maybe try the
ClientSecret
flow?
Copy code
authType: ClientSecret
  clientId: <client-ID>
  clientSecretLocation: /path/to/secret
12 Views