Repository navigation
Commit 40e1e38
galiautdinov
fix: gate docker container lifecycle mutations on docker:read
restartContainer, startContainer, stopContainer and killContainer
were guarded by withPermission("service", "read"), which the default
member role grants. Any authenticated org member with an API key
could start/stop/kill/restart any container in the organization,
regardless of canAccessToDocker or accessedServices scope.
Switch the four mutations to withPermission("docker", "read"),
matching removeContainer, getConfig and getContainers. Members now
need canAccessToDocker=true (legacy override) or an explicit
docker:read grant via a custom role to invoke them.1 parent 0e5fc58 commit 40e1e38
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments