Skip to content

Commit dd7a7c9

Browse files
robzienertbergundy
andauthored
Update SDK & server dependencies for grpc-proxy & Nexus (#381)
## What was changed Updates SDK and Server dependencies. ## Why? Triaging a bug observed internally using a grpc-proxy with workflows that use a Nexus Operation. I wanted to reproduce with purely OSS sample code, which required updating dependencies to get the Nexus workflowservice methods. Note that there's a bug in the proxy that doesn't handle single Payload fields properly that will be fixed in temporalio/api-go#202. ## Checklist 1. How was this tested: Running both `grpc-proxy` and `nexus` samples. I didn't test the OIDC path, however. --------- Co-authored-by: Roey Berman <roey.berman@gmail.com>
1 parent 66ce0f6 commit dd7a7c9

File tree

10 files changed

+389
-636
lines changed

10 files changed

+389
-636
lines changed

codec-server/codec-server/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func main() {
106106
if providerFlag != "" {
107107
p, err := newProvider(providerFlag)
108108
if err != nil {
109-
logger.Fatal("error", tag.NewErrorTag(err))
109+
logger.Fatal("failed to create OIDC provider", tag.Error(err))
110110
}
111111
provider = p
112112
fmt.Printf("oauth enabled for: %s\n", provider.Issuer)
@@ -138,6 +138,8 @@ func main() {
138138
case <-sigCh:
139139
_ = srv.Close()
140140
case err := <-errCh:
141-
logger.Fatal("error", tag.NewErrorTag(err))
141+
if err != http.ErrServerClosed {
142+
logger.Fatal("error from HTTP server", tag.Error(err))
143+
}
142144
}
143145
}

codec-server/codec-server/oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (p *Provider) Authorize(namespace string, r *http.Request) bool {
3131

3232
claims, err := p.mapper.GetClaims(&authInfo)
3333
if err != nil {
34-
logger.Warn("unable to parse claims", tag.NewErrorTag(err))
34+
logger.Warn("unable to parse claims", tag.Error(err))
3535
return false
3636
}
3737

codec-server/go.mod

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,86 @@
11
module github.com/temporalio/samples-go/codec-server
22

3-
go 1.21.1
3+
go 1.23.2
44

55
require (
66
github.com/golang/snappy v0.0.4
7-
github.com/google/uuid v1.5.0
8-
go.temporal.io/api v1.26.0
9-
go.temporal.io/sdk v1.25.1
10-
go.temporal.io/server v1.22.4
7+
github.com/google/uuid v1.6.0
8+
go.temporal.io/api v1.43.0
9+
go.temporal.io/sdk v1.32.1
10+
go.temporal.io/server v1.26.2
1111
)
1212

1313
require (
14-
github.com/aws/aws-sdk-go v1.44.289 // indirect
14+
github.com/aws/aws-sdk-go v1.53.15 // indirect
1515
github.com/beorn7/perks v1.0.1 // indirect
1616
github.com/blang/semver/v4 v4.0.0 // indirect
17-
github.com/cactus/go-statsd-client/v5 v5.0.0 // indirect
18-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
19-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
17+
github.com/cactus/go-statsd-client/v5 v5.1.0 // indirect
18+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
19+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2020
github.com/davecgh/go-spew v1.1.1 // indirect
21-
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
21+
github.com/dgryski/go-farm v0.0.0-20240924180020-3414d57e47da // indirect
2222
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
23-
github.com/go-logr/logr v1.2.4 // indirect
23+
github.com/go-logr/logr v1.4.2 // indirect
2424
github.com/go-logr/stdr v1.2.2 // indirect
25-
github.com/gocql/gocql v1.5.2 // indirect
26-
github.com/gogo/googleapis v1.4.1 // indirect
25+
github.com/gocql/gocql v1.6.0 // indirect
2726
github.com/gogo/protobuf v1.3.2 // indirect
28-
github.com/gogo/status v1.1.1 // indirect
29-
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
27+
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
3028
github.com/golang/mock v1.7.0-rc.1 // indirect
31-
github.com/golang/protobuf v1.5.3 // indirect
3229
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
33-
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
34-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
30+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
3531
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
3632
github.com/jmespath/go-jmespath v0.4.0 // indirect
33+
github.com/jmoiron/sqlx v1.3.4 // indirect
3734
github.com/josharian/intern v1.0.0 // indirect
35+
github.com/klauspost/compress v1.17.9 // indirect
3836
github.com/mailru/easyjson v0.7.7 // indirect
39-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
37+
github.com/mitchellh/mapstructure v1.5.0 // indirect
38+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
39+
github.com/nexus-rpc/sdk-go v0.1.0 // indirect
4040
github.com/olivere/elastic/v7 v7.0.32 // indirect
4141
github.com/pborman/uuid v1.2.1 // indirect
4242
github.com/pkg/errors v0.9.1 // indirect
4343
github.com/pmezard/go-difflib v1.0.0 // indirect
44-
github.com/prometheus/client_golang v1.16.0 // indirect
45-
github.com/prometheus/client_model v0.4.0 // indirect
46-
github.com/prometheus/common v0.44.0 // indirect
47-
github.com/prometheus/procfs v0.11.0 // indirect
44+
github.com/prometheus/client_golang v1.20.4 // indirect
45+
github.com/prometheus/client_model v0.6.1 // indirect
46+
github.com/prometheus/common v0.60.0 // indirect
47+
github.com/prometheus/procfs v0.15.1 // indirect
4848
github.com/robfig/cron v1.2.0 // indirect
4949
github.com/robfig/cron/v3 v3.0.1 // indirect
50-
github.com/stretchr/objx v0.5.0 // indirect
51-
github.com/stretchr/testify v1.8.4 // indirect
50+
github.com/stretchr/objx v0.5.2 // indirect
51+
github.com/stretchr/testify v1.10.0 // indirect
5252
github.com/twmb/murmur3 v1.1.8 // indirect
53-
github.com/uber-go/tally/v4 v4.1.7 // indirect
54-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 // indirect
55-
go.opentelemetry.io/otel v1.16.0 // indirect
56-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
57-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect
58-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0 // indirect
59-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
60-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 // indirect
61-
go.opentelemetry.io/otel/exporters/prometheus v0.39.0 // indirect
62-
go.opentelemetry.io/otel/metric v1.16.0 // indirect
63-
go.opentelemetry.io/otel/sdk v1.16.0 // indirect
64-
go.opentelemetry.io/otel/sdk/metric v0.39.0 // indirect
65-
go.opentelemetry.io/otel/trace v1.16.0 // indirect
66-
go.opentelemetry.io/proto/otlp v0.20.0 // indirect
53+
github.com/uber-go/tally/v4 v4.1.17-0.20240412215630-22fe011f5ff0 // indirect
54+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0 // indirect
55+
go.opentelemetry.io/otel v1.31.0 // indirect
56+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.31.0 // indirect
57+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 // indirect
58+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0 // indirect
59+
go.opentelemetry.io/otel/exporters/prometheus v0.53.0 // indirect
60+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
61+
go.opentelemetry.io/otel/sdk v1.31.0 // indirect
62+
go.opentelemetry.io/otel/sdk/metric v1.31.0 // indirect
63+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
64+
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
6765
go.uber.org/atomic v1.11.0 // indirect
68-
go.uber.org/dig v1.17.0 // indirect
69-
go.uber.org/fx v1.20.0 // indirect
66+
go.uber.org/dig v1.17.1 // indirect
67+
go.uber.org/fx v1.22.0 // indirect
68+
go.uber.org/mock v0.4.0 // indirect
7069
go.uber.org/multierr v1.11.0 // indirect
71-
go.uber.org/zap v1.24.0 // indirect
72-
golang.org/x/crypto v0.15.0 // indirect
73-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
74-
golang.org/x/net v0.18.0 // indirect
75-
golang.org/x/sys v0.14.0 // indirect
76-
golang.org/x/text v0.14.0 // indirect
77-
golang.org/x/time v0.3.0 // indirect
78-
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect
79-
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
80-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
81-
google.golang.org/grpc v1.59.0 // indirect
82-
google.golang.org/protobuf v1.31.0 // indirect
70+
go.uber.org/zap v1.27.0 // indirect
71+
golang.org/x/crypto v0.29.0 // indirect
72+
golang.org/x/exp v0.0.0-20240531132922-fd00a4e0eefc // indirect
73+
golang.org/x/net v0.31.0 // indirect
74+
golang.org/x/sync v0.9.0 // indirect
75+
golang.org/x/sys v0.27.0 // indirect
76+
golang.org/x/text v0.20.0 // indirect
77+
golang.org/x/time v0.5.0 // indirect
78+
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect
79+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
80+
google.golang.org/grpc v1.67.1 // indirect
81+
google.golang.org/protobuf v1.35.1 // indirect
82+
gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect
8383
gopkg.in/inf.v0 v0.9.1 // indirect
84-
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
8584
gopkg.in/validator.v2 v2.0.1 // indirect
8685
gopkg.in/yaml.v3 v3.0.1 // indirect
8786
)

0 commit comments

Comments
 (0)