Skip to content

Commit 670943a

Browse files
authored
Add Support for IAM and Workload Identity on GCS (#1568)
1 parent 3ac898d commit 670943a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

config/defaults/settings.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,15 @@ files:
462462
credentials: ''
463463
# Environment Variable Override: PWP__FILES__GCS__BUCKET=''
464464
bucket: ''
465+
#
466+
# Optionally use IAM instead of the credentials when signing URLs.
467+
# This is useful if you are authenticating your GKE applications with Workload Identity,
468+
# See here: https://edgeguides.rubyonrails.org/active_storage_overview.html#google-cloud-storage-service
469+
#
470+
# Environment Variable Override: PWP__FILES__GCS__IAM=true
471+
iam: false
472+
# Environment Variable Override: PWP__FILES__GCS__GSA_EMAIL='[email protected]'
473+
gsa_email: null
465474

466475
# Microsoft Azure Storage Credentials
467476
as:

config/settings.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,15 @@ files:
462462
credentials: ''
463463
# Environment Variable Override: PWP__FILES__GCS__BUCKET=''
464464
bucket: ''
465+
#
466+
# Optionally use IAM instead of the credentials when signing URLs.
467+
# This is useful if you are authenticating your GKE applications with Workload Identity,
468+
# See here: https://edgeguides.rubyonrails.org/active_storage_overview.html#google-cloud-storage-service
469+
#
470+
# Environment Variable Override: PWP__FILES__GCS__IAM=true
471+
iam: false
472+
# Environment Variable Override: PWP__FILES__GCS__GSA_EMAIL='[email protected]'
473+
gsa_email: null
465474

466475
# Microsoft Azure Storage Credentials
467476
as:

config/storage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ google:
1919
project: <%= Settings.files.gcs.project %>
2020
credentials: <%= Settings.files.gcs.credentials %>
2121
bucket: <%= Settings.files.gcs.bucket %>
22+
iam: <%= Settings.files.gcs.iam %>
23+
gsa_email: <%= Settings.files.gcs.gsa_email%>
2224

2325
microsoft:
2426
service: AzureStorage

0 commit comments

Comments
 (0)