mirror of
https://github.com/langgenius/dify-cloud-kit.git
synced 2026-07-19 13:35:54 -04:00
Feature Request: Support ADC (Application Default Credentials) for Google Cloud Storage #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @line1029 on GitHub (Jan 15, 2026).
Problem
Currently,
GCS_CREDENTIALS(base64-encoded service account JSON) is required to use GCS storage. If not provided, initialization fails.https://github.com/langgenius/dify-cloud-kit/blob/main/oss/gcsblob/gcs.go#L30-L35
Use Case
When running on GKE with Workload Identity or GCE with attached service accounts, ADC (Application Default Credentials) is the recommended authentication method. It eliminates the need to manage and rotate service account keys manually.
Proposed Solution
This allows:
GCS_CREDENTIALSis setGCS_CREDENTIALSis empty