Alternate for GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_keyfile

37 views
Skip to first unread message

Suprabhat

unread,
Mar 12, 2025, 3:33:44 AMMar 12
to Druid User
Hi Team,


To configure connectivity to google cloud, we are supposed to run druid processes with GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_keyfile in the environment.

Our usecase is to avoid storage of any file containing credentials in the VMs. We want to connect to GCS without storing creds in file. Is there any other way by which we could read the GCS creds without storing it in a file?

We tried using the file for starting our VMs and then deleting it once VMs start working but the issue is Middlemanagers' tasks are failing post deletion of GCS creds file.

Thanks

Suprabhat

unread,
Mar 21, 2025, 7:26:50 AMMar 21
to Druid User
Could anyone help me with this?

gi...@imply.io

unread,
Apr 1, 2025, 5:41:34 AMApr 1
to Druid User
Where do you want the credentials to be? It's possible that if you skip GOOGLE_APPLICATION_CREDENTIALS then you can use one of the other mechanisms on https://cloud.google.com/java/docs/reference/google-auth-library/latest/com.google.auth.oauth2.GoogleCredentials. Such as "Google Compute Engine built-in credentials", perhaps.

Gian
Reply all
Reply to author
Forward
0 new messages