Preflight checklist
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.json defines configAuthorizersRemote and
configAuthorizersRemoteJSON with only remote, headers,
forward_response_headers_to_upstream, retry (and payload for
the JSON variant) — no max_request_body_size property on either.
pipeline/authz/remote.go and pipeline/authz/utils.go
(pipeRequestBody) pipe the request body via an unbounded
io.TeeReader into a bytes.Buffer — no size check, no cap, no
HTTP 413 anywhere in either file.
- A GitHub commit search for
MaxRequestBodySize across 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
the remote authorizer section — note the max_request_body_size
/ 10MiB / HTTP 413 claim.
- Check spec/config.schema.json on the
master branch — search for
max_request_body_size: no match under either the remote or
remote_json authorizer definitions.
- Check pipeline/authz/remote.go and pipeline/authz/utils.go on the
master branch — 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
Preflight checklist
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_sizesetting on theremoteauthorizer that doesnot exist in the config schema or the actual implementation.
The page states:
This appears to be incorrect / describes a feature that was never
implemented:
spec/config.schema.jsondefinesconfigAuthorizersRemoteandconfigAuthorizersRemoteJSONwith onlyremote,headers,forward_response_headers_to_upstream,retry(andpayloadforthe JSON variant) — no
max_request_body_sizeproperty on either.pipeline/authz/remote.goandpipeline/authz/utils.go(
pipeRequestBody) pipe the request body via an unboundedio.TeeReaderinto abytes.Buffer— no size check, no cap, noHTTP 413 anywhere in either file.
MaxRequestBodySizeacross the fullrepo 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:
the
remoteauthorizer section — note themax_request_body_size/ 10MiB / HTTP 413 claim.
masterbranch — search formax_request_body_size: no match under either theremoteorremote_jsonauthorizer definitions.masterbranch — no body size limit logic anywhere in eitherfile; pipeRequestBody() buffers the body unbounded.
MaxRequestBodySize— zero results.Relevant log output
Relevant configuration
Version
master
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response