envoyproxy / envoyproxy/java-control-plane

the max value of 'max_request_bytes' is not match

オープン
#225 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
312
フォーク
149
PR マージ指標
30日以内にマージされた PR はありません

説明

We have a problem when load the file envoy.yaml to xds developing based on this project. The max value in envoy.yaml is 4294967295, but the max value in this project is 2147483647 (Java's Int type).

The content in envoy.yaml as follows:
```
http_filters:
- name: envoy.ext_authz
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz
http_service:
server_uri:
uri: 10.160.78.3:1001
cluster: ext-authz
timeout: 1s
failure_mode_allow: false
with_request_body:
max_request_bytes: **4294967295**
allow_partial_message: true
```

but when load the content to xds, the value exceeds the max value of Java's Int type.
---------
[api/src/main/proto/envoy/config/filter/http/ext_authz/v2/ext_authz.proto]
uint32 max_request_bytes ;

uint32 corresponds to int in Java and int32 in Go, so this will result in an error when load the envoy.yaml.

I

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

api/src/main/proto/envoy/config/filter/http/ext_authz/v2/ext_authz.proto から始め、uint32 max_request_bytes の値が envoy.yaml から Java xDS コントロールプレーンに読み込まれる仕組みを追跡します。4294967295 で報告された失敗を再現します。設定が現在の Java Int-range エラーなしでその値を読み込めれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。