Skip to content

Commit 8e60f3b

Browse files
authored
chore: remove grpc-web (#20140)
1 parent a19a98b commit 8e60f3b

58 files changed

Lines changed: 10 additions & 7592 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
174174
* Additionally, to reflect this change, the module manager does not take a codec either.
175175
* (runtime) [#19747](https://github.com/cosmos/cosmos-sdk/pull/19747) `runtime.ValidatorAddressCodec` and `runtime.ConsensusAddressCodec` have been moved to `core`.
176176
* (baseapp) [#19993](https://github.com/cosmos/cosmos-sdk/pull/19993) Indicate pruning with error code "not found" rather than "invalid request".
177+
* (server) [#20140](https://github.com/cosmos/cosmos-sdk/pull/20140) Remove embedded grpc-web proxy in favor of standalone grpc-web proxy. [Envoy Proxy](https://www.envoyproxy.io/docs/envoy/latest/start/start)
177178

178179
### Client Breaking Changes
179180

UPGRADING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ For non depinject users, simply call `RegisterLegacyAminoCodec` and `RegisterInt
6161

6262
Additionally, thanks to the genesis simplification, as explained in [the genesis interface update](#genesis-interface), the module manager `InitGenesis` and `ExportGenesis` methods do not require the codec anymore.
6363

64+
##### GRPC-WEB
65+
66+
Grpc-web embedded client has been removed from the server. If you would like to use grpc-web, you can use the [envoy proxy](https://www.envoyproxy.io/docs/envoy/latest/start/start).
67+
6468
##### AnteHandlers
6569

6670
The `GasConsumptionDecorator` and `IncreaseSequenceDecorator` have been merged with the SigVerificationDecorator, so you'll

client/v2/go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ require (
4040
github.com/beorn7/perks v1.0.1 // indirect
4141
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
4242
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
43-
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
4443
github.com/cespare/xxhash v1.1.0 // indirect
4544
github.com/cespare/xxhash/v2 v2.2.0 // indirect
4645
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
@@ -60,7 +59,6 @@ require (
6059
github.com/danieljoos/wincred v1.2.0 // indirect
6160
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
6261
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
63-
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
6462
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
6563
github.com/dgraph-io/ristretto v0.1.1 // indirect
6664
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
@@ -100,7 +98,6 @@ require (
10098
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
10199
github.com/huandu/skiplist v1.2.0 // indirect
102100
github.com/iancoleman/strcase v0.3.0 // indirect
103-
github.com/improbable-eng/grpc-web v0.15.0 // indirect
104101
github.com/inconshreveable/mousetrap v1.1.0 // indirect
105102
github.com/jmhodges/levigo v1.0.0 // indirect
106103
github.com/klauspost/compress v1.17.7 // indirect
@@ -162,7 +159,6 @@ require (
162159
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect
163160
gopkg.in/ini.v1 v1.67.0 // indirect
164161
gopkg.in/yaml.v3 v3.0.1 // indirect
165-
nhooyr.io/websocket v1.8.6 // indirect
166162
pgregory.net/rapid v1.1.0 // indirect
167163
)
168164

client/v2/go.sum

Lines changed: 0 additions & 303 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ require (
4040
github.com/hashicorp/golang-lru v1.0.2
4141
github.com/hdevalence/ed25519consensus v0.2.0
4242
github.com/huandu/skiplist v1.2.0
43-
github.com/improbable-eng/grpc-web v0.15.0
4443
github.com/magiconair/properties v1.8.7
4544
github.com/mattn/go-isatty v0.0.20
4645
github.com/mdp/qrterminal/v3 v3.2.0
@@ -77,7 +76,6 @@ require (
7776
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
7877
github.com/beorn7/perks v1.0.1 // indirect
7978
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
80-
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
8179
github.com/cespare/xxhash v1.1.0 // indirect
8280
github.com/cespare/xxhash/v2 v2.2.0 // indirect
8381
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
@@ -89,7 +87,6 @@ require (
8987
github.com/cosmos/ics23/go v0.10.0 // indirect
9088
github.com/danieljoos/wincred v1.2.0 // indirect
9189
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
92-
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
9390
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
9491
github.com/dgraph-io/ristretto v0.1.1 // indirect
9592
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
@@ -169,7 +166,6 @@ require (
169166
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect
170167
gopkg.in/ini.v1 v1.67.0 // indirect
171168
gopkg.in/yaml.v3 v3.0.1 // indirect
172-
nhooyr.io/websocket v1.8.6 // indirect
173169
rsc.io/qr v0.2.0 // indirect
174170
)
175171

@@ -195,12 +191,7 @@ replace github.com/cosmos/iavl => github.com/cosmos/iavl v1.0.1 // TODO remove
195191
replace (
196192
// use cosmos fork of keyring
197193
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
198-
// dgrijalva/jwt-go is deprecated and doesn't receive security updates.
199-
// TODO: remove it: https://github.com/cosmos/cosmos-sdk/issues/13134
200-
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
201-
// Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities.
202-
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
203-
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1
194+
204195
// replace broken goleveldb
205196
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
206197
)

0 commit comments

Comments
 (0)