1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

restrict secret view to node level in controller

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2017-03-14 09:53:02 -04:00
parent 1d4608032d
commit 8392123f30
No known key found for this signature in database
GPG key ID: A519480096146526

View file

@ -152,7 +152,7 @@ func (e *executor) Controller(t *api.Task) (exec.Controller, error) {
return newNetworkAttacherController(e.backend, t, e.secrets) return newNetworkAttacherController(e.backend, t, e.secrets)
} }
ctlr, err := newController(e.backend, t, e.secrets) ctlr, err := newController(e.backend, t, secrets.Restrict(e.secrets, t))
if err != nil { if err != nil {
return nil, err return nil, err
} }