Skip to content

Commit

Permalink
Upgrade envoy from 1.21.3 to 1.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed May 10, 2023
1 parent 93c1920 commit f1f7eb8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docker-compose-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- ./docker/genesis-testnet.json:/genesis.json:z
- ./docker/oasis-explorer/config-testnet.json:/.secrets/config.json:z
envoy:
image: docker.io/envoyproxy/envoy:v1.21.3
image: docker.io/envoyproxy/envoy:v1.26.1
ports:
- '127.0.0.1:42280:42280'
- '127.0.0.1:42281:42281'
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
- ./docker/genesis-local.json:/genesis.json:z
- ./docker/oasis-explorer/config-local.json:/.secrets/config.json:z
envoy:
image: docker.io/envoyproxy/envoy:v1.21.3
image: docker.io/envoyproxy/envoy:v1.26.1
ports:
- '42280:42280'
- '42281:42281'
Expand Down
21 changes: 12 additions & 9 deletions docker/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,39 @@ static_resources:
domains: ['*']
routes:
- match:
safe_regex:
google_re2:
max_program_size: 1000000
regex: '/oasis-core\.(NodeController/WaitReady|Registry/(GetNodes)|Staking/(TokenSymbol|ConsensusParameters|Account|DelegationsTo|DelegationsFor|DelegationInfosFor|DebondingDelegationInfosFor|GetEvents)|Beacon/(GetEpoch)|Consensus/(SubmitTx|EstimateGas|GetBlock|GetChainContext|GetTransactionsWithResults|GetGenesisDocument|WatchBlocks|GetSignerNonce))'
safe_regex:
regex: '/oasis-core\.(NodeController/WaitReady|Registry/(GetNodes)|Staking/(TokenSymbol|ConsensusParameters|Account|DelegationsTo|DelegationsFor|DelegationInfosFor|DebondingDelegationInfosFor|GetEvents)|Beacon/(GetEpoch)|Consensus/(SubmitTx|EstimateGas|GetBlock|GetChainContext|GetTransactionsWithResults|GetGenesisDocument|WatchBlocks|GetSignerNonce))'
route:
cluster: oasis_node_grpc
timeout: 0s
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: '/oasis-core'
prefix: '/oasis-core'
direct_response:
status: 404
body:
inline_string: 'You have to list every method you use in the envoy matcher.'
- match:
prefix: '/'
prefix: '/'
route:
cluster: dev_static
cors:
expose_headers: grpc-status,grpc-message
allow_origin_string_match:
- prefix: '*'
- exact: '*'
allow_headers: content-type,x-grpc-web,x-user-agent
expose_headers: grpc-status,grpc-message,grpc-status-details-bin
max_age: '1728000'
http_filters:
- name: envoy.filters.http.grpc_web
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.cors
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.router
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: oasis_node_grpc
connect_timeout: 15s
Expand All @@ -58,7 +62,6 @@ static_resources:
address:
pipe:
path: /node/data/internal.sock
http2_protocol_options: {}
- name: dev_static
connect_timeout: 0.25s
load_assignment:
Expand Down

0 comments on commit f1f7eb8

Please sign in to comment.