Skip to content

Commit 2518b52

Browse files
authored
Merge pull request #6991 from mickael-docker/docs-clarify-authz
docs: clarify authz content type
2 parents 2944fd1 + 9f18a0a commit 2518b52

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/extend/plugins_authorization.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ Each request sent to the plugin includes the authenticated user, the HTTP
7575
headers, and the request/response body. Only the user name and the
7676
authentication method used are passed to the plugin. Most importantly, no user
7777
credentials or tokens are passed. Finally, not all request/response bodies
78-
are sent to the authorization plugin. Only those request/response bodies where
79-
the `Content-Type` is either `text/*` or `application/json` are sent.
78+
are sent to the authorization plugin. Only request/response bodies where
79+
the `Content-Type` is `application/json` are sent to the authorization plugin;
80+
bodies of any other `Content-Type` are not visible to the plugin and cannot
81+
be used for enforcement, even though the daemon may still act on this data.
8082

8183
For commands that can potentially hijack the HTTP connection (`HTTP
8284
Upgrade`), such as `exec`, the authorization plugin is only called for the

0 commit comments

Comments
 (0)