Skip to content

Commit 12b08a1

Browse files
docs(authz): clarify daemon parsing semantics
Signed-off-by: mickael emirkanian <mickael.emirkanian@docker.com>
1 parent 40a8e8e commit 12b08a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/extend/plugins_authorization.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ The Engine's authorization middleware fails closed: when a plugin returns an err
9595
the request is denied and the error is surfaced to the client. Plugins should also fail closed: if the plugin
9696
cannot confidently evaluate a request, it should return an error or `Allow: false`.
9797

98+
> [!WARNING]
99+
> The plugin receives the [**raw** request body](#authzpluginauthzreq) from the daemon, so the
100+
> plugin must apply the same decoding semantics to ensure it is correctly evaluating
101+
> the request. The daemon decodes JSON **case-insensitively**, **last-one-wins**,
102+
> and does not reject duplicate or case-variant keys.
103+
98104
### Response body size and partial buffering
99105

100106
The internal buffer that holds the response body between the daemon's HTTP

0 commit comments

Comments
 (0)