Skip to content

Commit 44ec1ae

Browse files
authored
[extension/googleclientauth] Update github.com/GoogleCloudPlatform/opentelemetry-operations-go v0.48.0 (#33493)
Update github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension to v0.48.0. This update includes support for Google-signed ID token. https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/releases/tag/v0.48.0 Closes #33185 The documents about googleclientauth extension also updated. --------- Signed-off-by: Rintaro Okamura <[email protected]>
1 parent 36fee8c commit 44ec1ae

File tree

10 files changed

+159
-8
lines changed

10 files changed

+159
-8
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: extension/googleclientauth
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add Google-signed ID token support
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [33185]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
Update github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauth to v0.48.0.
20+
With this update, extension/googleclientauth now supports Google-signed ID token as auth header.
21+
22+
# If your change doesn't affect end users or the exported elements of any package,
23+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
24+
# Optional: The change log or logs in which this entry should be included.
25+
# e.g. '[user]' or '[user, api]'
26+
# Include 'user' if the change is relevant to end users.
27+
# Include 'api' if there is a change to a library API.
28+
# Default: '[user]'
29+
change_logs: []

cmd/otelcontribcol/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ require (
357357
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.47.0 // indirect
358358
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector/googlemanagedprometheus v0.47.0 // indirect
359359
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.23.0 // indirect
360-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.47.0 // indirect
360+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.48.0 // indirect
361361
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.47.0 // indirect
362362
github.com/IBM/sarama v1.43.2 // indirect
363363
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c // indirect

cmd/otelcontribcol/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/googleclientauthextension/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ The following optional config fields are available:
4343
- `project` - The Google Cloud Project telemetry is sent to if the `gcp.project.id` resource attribute is not set. If unspecified, this is determined using application default credentials.
4444
- `scopes` - The oauth 2.0 [scopes](https://datatracker.ietf.org/doc/html/rfc6749#section-3.3) requested by the extension.
4545
- `quota_project` - The [project](https://cloud.google.com/apis/docs/system-parameters) for quota and billing purposes. The caller must have `serviceusage.services.use` permission on the project.
46+
- `token_type` - The type of generated token. Default: `access_token`
47+
- `access_token`: [OAuth 2.0 access token](https://cloud.google.com/docs/authentication/token-types#access) will be generated.
48+
- `id_token`: Google-signed [ID token](https://cloud.google.com/docs/authentication/token-types#id) will be generated.
49+
- `audience` - The audience claim used for generating ID token

extension/googleclientauthextension/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ func TestLoadConfig(t *testing.T) {
3737
Project: "my-project",
3838
Scopes: []string{"https://www.something.com/hello", "https://www.something.com/world"},
3939
QuotaProject: "other-project",
40+
TokenType: "access_token",
41+
Audience: "my-audience",
4042
},
4143
}, cfg)
4244
}

extension/googleclientauthextension/generated_package_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/googleclientauthextension/go.mod

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.21.0
55
exclude github.com/knadh/koanf v1.5.0
66

77
require (
8-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.47.0
8+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/extension/googleclientauthextension v0.48.0
99
github.com/stretchr/testify v1.9.0
1010
go.opentelemetry.io/collector/component v0.103.0
1111
go.opentelemetry.io/collector/confmap v0.103.0
@@ -21,11 +21,16 @@ require (
2121
github.com/beorn7/perks v1.0.1 // indirect
2222
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2323
github.com/davecgh/go-spew v1.1.1 // indirect
24+
github.com/felixge/httpsnoop v1.0.4 // indirect
2425
github.com/go-logr/logr v1.4.1 // indirect
2526
github.com/go-logr/stdr v1.2.2 // indirect
2627
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
2728
github.com/gogo/protobuf v1.3.2 // indirect
29+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
30+
github.com/golang/protobuf v1.5.4 // indirect
31+
github.com/google/s2a-go v0.1.7 // indirect
2832
github.com/google/uuid v1.6.0 // indirect
33+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
2934
github.com/hashicorp/go-version v1.7.0 // indirect
3035
github.com/knadh/koanf/maps v0.1.1 // indirect
3136
github.com/knadh/koanf/providers/confmap v0.1.0 // indirect
@@ -37,19 +42,23 @@ require (
3742
github.com/prometheus/client_model v0.6.1 // indirect
3843
github.com/prometheus/common v0.54.0 // indirect
3944
github.com/prometheus/procfs v0.15.0 // indirect
45+
go.opencensus.io v0.24.0 // indirect
4046
go.opentelemetry.io/collector/config/configtelemetry v0.103.0 // indirect
4147
go.opentelemetry.io/collector/featuregate v1.10.0 // indirect
4248
go.opentelemetry.io/collector/pdata v1.10.0 // indirect
49+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
4350
go.opentelemetry.io/otel v1.27.0 // indirect
4451
go.opentelemetry.io/otel/exporters/prometheus v0.49.0 // indirect
4552
go.opentelemetry.io/otel/sdk v1.27.0 // indirect
4653
go.opentelemetry.io/otel/sdk/metric v1.27.0 // indirect
4754
go.uber.org/multierr v1.11.0 // indirect
4855
go.uber.org/zap v1.27.0 // indirect
56+
golang.org/x/crypto v0.22.0 // indirect
4957
golang.org/x/net v0.24.0 // indirect
5058
golang.org/x/oauth2 v0.19.0 // indirect
5159
golang.org/x/sys v0.20.0 // indirect
5260
golang.org/x/text v0.14.0 // indirect
61+
google.golang.org/api v0.169.0 // indirect
5362
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
5463
google.golang.org/grpc v1.64.0 // indirect
5564
google.golang.org/protobuf v1.34.2 // indirect

0 commit comments

Comments
 (0)