# GCP Sink Connector - What should Credentials File path location be?

**URL:** <https://ask.lenses.io/t/gcp-sink-connector-what-should-credentials-file-path-location-be/167>\
**Category:** Apache Kafka Connectors\
**Tags:** kafka-connect\
**Created:** [January 2, 2024, 7:55pm UTC](https://ask.lenses.io/t/gcp-sink-connector-what-should-credentials-file-path-location-be/167 "2024-01-02T19:55:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/adam/32/69_2.png) [@Adam](https://ask.lenses.io/u/Adam)\
**Post date:** [January 2, 2024, 7:55pm UTC](https://ask.lenses.io/t/gcp-sink-connector-what-should-credentials-file-path-location-be/167/1 "2024-01-02T19:55:55Z")

</div>

I need to create a GCP object storage sink & using the Lenses connector. I am required to use authentication keys within a file.

In the documentation, I can see that `connect.gcpstorage.gcp.auth.mode=File` is available; my question is this: where does the file need to be stored in order for the connector to use it?

Should the file path I provide with `connect.gcpstorage.gcp.file` be a file path on the Connect Worker? On Lenses itself?

---

<div class="post-metadata">

**Author:** ![Umar\_Cheema](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/umar_cheema/32/177_2.png) [@Umar\_Cheema](https://ask.lenses.io/u/Umar_Cheema)\
**Post date:** [May 12, 2025, 3:29pm UTC](https://ask.lenses.io/t/gcp-sink-connector-what-should-credentials-file-path-location-be/167/2 "2025-05-12T15:29:52Z")

</div>

when you login to gcp console using `gcloud auth application-default login` the credentials file is saved under ~/.config/gcloud. Or you can export the api key linked to a service account and give it the path to that
