Skip to content

Commit c20376a

Browse files
authored
fix: Add warning regarding external credential sourcing (#1148)
1 parent 100d8b4 commit c20376a

File tree

70 files changed

+490
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+490
-0
lines changed

gapic-generator/templates/default/service/client/_config.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4747
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4848
# * (`nil`) indicating no credentials
49+
#
50+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
51+
# external source for authentication to Google Cloud, you must validate it before
52+
# providing it to a Google API client library. Providing an unvalidated credential
53+
# configuration to Google APIs can compromise the security of your systems and data.
54+
# For more information, refer to [Validate credential configurations from external
55+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4956
# @return [::Object]
5057
# @!attribute [rw] scope
5158
# The OAuth scopes

gapic-generator/templates/default/service/rest/client/_config.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
4545
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4646
# * (`nil`) indicating no credentials
47+
#
48+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
49+
# external source for authentication to Google Cloud, you must validate it before
50+
# providing it to a Google API client library. Providing an unvalidated credential
51+
# configuration to Google APIs can compromise the security of your systems and data.
52+
# For more information, refer to [Validate credential configurations from external
53+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4754
# @return [::Object]
4855
# @!attribute [rw] scope
4956
# The OAuth scopes

shared/output/ads/googleads/lib/google/ads/google_ads/v15/services/campaign_service/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ def mutate_campaigns request, options = nil
357357
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
358358
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
359359
# * (`nil`) indicating no credentials
360+
#
361+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
362+
# external source for authentication to Google Cloud, you must validate it before
363+
# providing it to a Google API client library. Providing an unvalidated credential
364+
# configuration to Google APIs can compromise the security of your systems and data.
365+
# For more information, refer to [Validate credential configurations from external
366+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
360367
# @return [::Object]
361368
# @!attribute [rw] scope
362369
# The OAuth scopes

shared/output/cloud/compute_small/lib/google/cloud/compute/v1/addresses/rest/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,13 @@ def list request, options = nil
713713
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
714714
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
715715
# * (`nil`) indicating no credentials
716+
#
717+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
718+
# external source for authentication to Google Cloud, you must validate it before
719+
# providing it to a Google API client library. Providing an unvalidated credential
720+
# configuration to Google APIs can compromise the security of your systems and data.
721+
# For more information, refer to [Validate credential configurations from external
722+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
716723
# @return [::Object]
717724
# @!attribute [rw] scope
718725
# The OAuth scopes

shared/output/cloud/compute_small/lib/google/cloud/compute/v1/global_operations/rest/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,13 @@ def get request, options = nil
376376
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
377377
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
378378
# * (`nil`) indicating no credentials
379+
#
380+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
381+
# external source for authentication to Google Cloud, you must validate it before
382+
# providing it to a Google API client library. Providing an unvalidated credential
383+
# configuration to Google APIs can compromise the security of your systems and data.
384+
# For more information, refer to [Validate credential configurations from external
385+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
379386
# @return [::Object]
380387
# @!attribute [rw] scope
381388
# The OAuth scopes

shared/output/cloud/compute_small/lib/google/cloud/compute/v1/networks/rest/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,13 @@ def remove_peering request, options = nil
436436
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
437437
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
438438
# * (`nil`) indicating no credentials
439+
#
440+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
441+
# external source for authentication to Google Cloud, you must validate it before
442+
# providing it to a Google API client library. Providing an unvalidated credential
443+
# configuration to Google APIs can compromise the security of your systems and data.
444+
# For more information, refer to [Validate credential configurations from external
445+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
439446
# @return [::Object]
440447
# @!attribute [rw] scope
441448
# The OAuth scopes

shared/output/cloud/compute_small/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,13 @@ def resize request, options = nil
335335
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
336336
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
337337
# * (`nil`) indicating no credentials
338+
#
339+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
340+
# external source for authentication to Google Cloud, you must validate it before
341+
# providing it to a Google API client library. Providing an unvalidated credential
342+
# configuration to Google APIs can compromise the security of your systems and data.
343+
# For more information, refer to [Validate credential configurations from external
344+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
338345
# @return [::Object]
339346
# @!attribute [rw] scope
340347
# The OAuth scopes

shared/output/cloud/compute_small/lib/google/cloud/compute/v1/region_operations/rest/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,13 @@ def wait request, options = nil
568568
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
569569
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
570570
# * (`nil`) indicating no credentials
571+
#
572+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
573+
# external source for authentication to Google Cloud, you must validate it before
574+
# providing it to a Google API client library. Providing an unvalidated credential
575+
# configuration to Google APIs can compromise the security of your systems and data.
576+
# For more information, refer to [Validate credential configurations from external
577+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
571578
# @return [::Object]
572579
# @!attribute [rw] scope
573580
# The OAuth scopes

shared/output/cloud/grafeas_v1/lib/grafeas/v1/grafeas/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,13 @@ def list_note_occurrences request, options = nil
14931493
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
14941494
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
14951495
# * (`nil`) indicating no credentials
1496+
#
1497+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
1498+
# external source for authentication to Google Cloud, you must validate it before
1499+
# providing it to a Google API client library. Providing an unvalidated credential
1500+
# configuration to Google APIs can compromise the security of your systems and data.
1501+
# For more information, refer to [Validate credential configurations from external
1502+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
14961503
# @return [::Object]
14971504
# @!attribute [rw] scope
14981505
# The OAuth scopes

shared/output/cloud/language_v1/lib/google/cloud/language/v1/language_service/client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,13 @@ def annotate_text request, options = nil
12881288
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
12891289
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
12901290
# * (`nil`) indicating no credentials
1291+
#
1292+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
1293+
# external source for authentication to Google Cloud, you must validate it before
1294+
# providing it to a Google API client library. Providing an unvalidated credential
1295+
# configuration to Google APIs can compromise the security of your systems and data.
1296+
# For more information, refer to [Validate credential configurations from external
1297+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
12911298
# @return [::Object]
12921299
# @!attribute [rw] scope
12931300
# The OAuth scopes

0 commit comments

Comments
 (0)