mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #31820 from ehazlett/secrets-restrict
Restrict secret view to node level in controller
This commit is contained in:
commit
0fe41cc4db
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ func (e *executor) Controller(t *api.Task) (exec.Controller, error) {
|
|||
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 {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue