googleauth 1.17.7 → 1.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af06c8e4a1a2a758704e949f6bcfa3d885bf8a6cd078a82ac02e0c679a5a3069
4
- data.tar.gz: 198ac2cadd8776c53c75b81d88555c9269c42e4be5a2e491ddd5751926d44c50
3
+ metadata.gz: b4438b5a4afacb0eb2223370a7a193fb7185ff0c7a26a4e36faf82e8946448fb
4
+ data.tar.gz: 35cb94da761a317c43ddb3554ee77aedd53ad1384892f6007b9ea7cb31fdb6cf
5
5
  SHA512:
6
- metadata.gz: 224efb177a6728032f30e5cb09680f3aef19d52d260632f03c3ed84153dc302911b7bd89d06523ead8bd01389bc43ef1b95ee2b126df4ef4f39235b2c6d3ec17
7
- data.tar.gz: d99977881c06e569b1e1bb194f590fcca5516372e69841986f8e16a1bcd8e3bf40a973f4818b740e5f2e6f4ce373f029fed12def6a1cdd26390e4b5f32a7fa12
6
+ metadata.gz: 356edb19a4de19b21ff1aa25681b329aa4eb72f1499575c009649efd042f0e0560ec03cc3332bd7d750627ecca85391134a8424ba94300abba113a80bce8b452
7
+ data.tar.gz: c1e894da2db997443e65f6151668b7d617446127c9dc991a9ee770232263c6dc9ffc8362909d58ed3bdf5dec7f3ca4395c26235efdb2b7065467ed1470636aa2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 1.17.8 (2026-11-22)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Build CRM URI from universe domain ([#613](https://github.com/googleapis/google-auth-library-ruby/issues/613))
8
+ * strip -fips suffix from AWS service name in SigV4 signer ([#608](https://github.com/googleapis/google-auth-library-ruby/issues/608))
9
+
3
10
  ### 1.17.7 (2026-10-23)
4
11
 
5
12
  #### Documentation
@@ -305,7 +305,7 @@ module Google
305
305
  principal: "aws"
306
306
  )
307
307
  end
308
- service_name = uri.host.split(".").first
308
+ service_name = uri.host.split(".").first.delete_suffix("-fips")
309
309
 
310
310
  datetime = Time.now.utc.strftime "%Y%m%dT%H%M%SZ"
311
311
  date = datetime[0, 8]
@@ -27,8 +27,19 @@ module Google
27
27
  # as those provided by the AWS provider or OIDC provider like Azure, etc.
28
28
  module ExternalAccountUtils
29
29
  # Cloud resource manager URL used to retrieve project information.
30
+ #
31
+ # @deprecated This constant is deprecated and will be removed in a future version.
32
+ # The Cloud Resource Manager URL is constructed dynamically using `universe_domain`.
30
33
  CLOUD_RESOURCE_MANAGER = "https://cloudresourcemanager.googleapis.com/v1/projects/".freeze
31
34
 
35
+ # @private Default universe domain when none is configured.
36
+ DEFAULT_UNIVERSE_DOMAIN = "googleapis.com".freeze
37
+ private_constant :DEFAULT_UNIVERSE_DOMAIN
38
+
39
+ # @private Cloud Resource Manager URL template parameterized by universe domain and project number.
40
+ CLOUD_RESOURCE_MANAGER_URL_TEMPLATE = "https://cloudresourcemanager.%s/v1/projects/%s".freeze
41
+ private_constant :CLOUD_RESOURCE_MANAGER_URL_TEMPLATE
42
+
32
43
  ##
33
44
  # Retrieves the project ID corresponding to the workload identity or workforce pool.
34
45
  # For workforce pool credentials, it returns the project ID corresponding to the workforce_pool_user_project.
@@ -48,7 +59,8 @@ module Google
48
59
  # if we missing either project number or scope, we won't retrieve project_id
49
60
  return nil if project_number.nil? || @scope.nil?
50
61
 
51
- url = "#{CLOUD_RESOURCE_MANAGER}#{project_number}"
62
+ resolved_universe_domain = (respond_to?(:universe_domain) && universe_domain) || DEFAULT_UNIVERSE_DOMAIN
63
+ url = format CLOUD_RESOURCE_MANAGER_URL_TEMPLATE, resolved_universe_domain, project_number
52
64
  response = connection.get url do |req|
53
65
  req.headers["Authorization"] = "Bearer #{@access_token}"
54
66
  req.headers["Content-Type"] = "application/json"
@@ -71,7 +83,7 @@ module Google
71
83
  # or nil if it cannot be determined
72
84
  #
73
85
  def project_number
74
- segments = @audience.split "/"
86
+ segments = (@audience || "").split "/"
75
87
  idx = segments.index "projects"
76
88
  return nil if idx.nil? || idx + 1 == segments.size
77
89
  segments[idx + 1]
@@ -16,6 +16,6 @@ module Google
16
16
  # Module Auth provides classes that provide Google-specific authorization
17
17
  # used to access Google APIs.
18
18
  module Auth
19
- VERSION = "1.17.7".freeze
19
+ VERSION = "1.17.8".freeze
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googleauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.7
4
+ version: 1.17.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC