Oathkeeper docs claim a max_request_body_size config on the remote authorizer that doesn't exist in the schema or source
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Oathkeeper の authz ドキュメントページを開き、max_request_body_size claim を含むリモートオーソライザーのセクションを見つけます。spec/config.schema.json、pipeline/authz/remote.go、pipeline/authz/utils.go と照合して検証します。対応完了の条件は、不正確な claim を削除するか、その機能が利用できないことを明確に示すことです。
索引モデルが issue の本文から書いたものです。
説明
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
The Oathkeeper documentation page for the authz pipeline
(https://www.ory.com/docs/oathkeeper/pipeline/authz) describes a
max_request_body_size setting on the remote authorizer that does
not exist in the config schema or the actual implementation.
The page states:
The maximum inbound request body size that Ory Oathkeeper buffers
so it can replay the body to the upstream service. The default is
"10MiB".Ory Oathkeeper rejects requests that exceed the limit with HTTP 413
before calling the remote authorizer.
This appears to be incorrect / describes a feature that was never
implemented:
spec/config.schema.jsondefinesconfigAuthorizersRemoteand
configAuthorizersRemoteJSONwith onlyremote,headers,
forward_response_headers_to_upstream,retry(andpayloadfor
the JSON variant) — nomax_request_body_sizeproperty on either.pipeline/authz/remote.goandpipeline/authz/utils.go
(pipeRequestBody) pipe the request body via an unbounded
io.TeeReaderinto abytes.Buffer— no size check, no cap, no
HTTP 413 anywhere in either file.- A GitHub commit search for
MaxRequestBodySizeacross the full
repo history returns zero results — this identifier has never
existed in the codebase.
Suggested fix: remove the claim from the docs page, or if this was a
planned-but-unshipped feature, mark it clearly as not yet available.
Reproducing the bug
Not applicable in the docker/curl sense — this is a documentation
inaccuracy, not a runtime bug. To verify:
- Visit https://www.ory.com/docs/oathkeeper/pipeline/authz and read
theremoteauthorizer section — note themax_request_body_size
/ 10MiB / HTTP 413 claim. - Check spec/config.schema.json on the
masterbranch — search for
max_request_body_size: no match under either theremoteor
remote_jsonauthorizer definitions. - Check pipeline/authz/remote.go and pipeline/authz/utils.go on the
masterbranch — no body size limit logic anywhere in either
file; pipeRequestBody() buffers the body unbounded. - Search commit history for
MaxRequestBodySize— zero results.
Relevant log output
N/A — this is a documentation inaccuracy, not a runtime error. No
logs to provide.
Relevant configuration
N/A — no runtime config triggers this. For reference, the actual
(correct) schema for the affected section, from
spec/config.schema.json on the master branch:
authorizers:
remote:
config:
remote: <url>
headers: {}
forward_response_headers_to_upstream: []
retry: {}
No max_request_body_size property exists here or under remote_json.
Version
master
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
- 主要言語
- TypeScript
- スター
- 161
- フォーク
- 1.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ory/docs のほかの issue
-
good first issue help wanted upstream
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
good first issue help wanted upstream
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
-
Shared kratos pages can only belong to one sidebar — OEL readers lose navigation context再び着手できるかも @hperl が 77 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
good first issue help wanted upstream
難易度 1/5 1時間未満 初心者へのやさしさ 58/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
melgarafael/DeskcommCRM#1812 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
prisma/prisma-cli#309 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gregwebs/pi-quota-dispatcher#26 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
openwatersio/slackwater.xyz#124 ·
メンテナーはふだん 1 日以内に返信
-
agent-reported area/browser area/docs documentation good first issue hacktoberfest help wanted P2
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 2 日以内に返信