1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/authorization
Liron Levin f875caf6bf Fix 19575: Docker events doesn't work with authorization plugin
To support the requirement of blocking the request after the daemon
responded the authorization plugin use a `response recorder` that replay
the response after the flow ends.

This commit adds support for commands that hijack the connection and
flushes data via the http.Flusher interface. This resolves the error
with the event endpoint.

Signed-off-by: Liron Levin <liron@twistlock.com>
(cherry picked from commit 5ffc810df2)

From PR #20002
2016-02-10 12:58:27 -05:00
..
api.go pkg: authorization: add Err to tweak response status code 2015-12-17 11:08:47 +01:00
authz.go Fix 19575: Docker events doesn't work with authorization plugin 2016-02-10 12:58:27 -05:00
authz_test.go Fix 19575: Docker events doesn't work with authorization plugin 2016-02-10 12:58:27 -05:00
plugin.go pkg: authorization: do not register the same plugin 2015-12-23 21:08:40 +01:00
response.go Fix 19575: Docker events doesn't work with authorization plugin 2016-02-10 12:58:27 -05:00