log refused agent-permission changes on the controller api
This commit is contained in:
parent
96405621d7
commit
3d142feb6a
2 changed files with 126 additions and 11 deletions
|
|
@ -308,7 +308,8 @@ writes. Set them with `swarmctl agent permissions get|set|clear <agent>`
|
|||
(`permissions` in `POST /api/agents`). A missing key or an unset field means
|
||||
the default (`Permission::DEFAULT`): `messaging`, `meta`, `inbox`,
|
||||
`execution`, for every agent whatever its name. `"permissions": []` grants
|
||||
none.
|
||||
none. swarm-controller logs every refused `PUT` or `DELETE` on that route at `warn` as
|
||||
`agent permissions: request refused`, with the fields `op`, `agent`, `status` and `detail`.
|
||||
|
||||
**How a change applies** —
|
||||
- The agent's harness reads its own key every 10 seconds and builds every
|
||||
|
|
|
|||
Loading…
Reference in a new issue