aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/changes.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-09 22:23:52 +0000
committertv <tv@krebsco.de>2026-11-11 22:21:10 +0100
commita0c8fcb2693cc017d78e39a6e623d1c53e493a84 (patch)
tree4abf280e776df1b52796f5bf3f356af66509e89a /src/swarm/changes.rs
parentb24abedb2465a62a64e3fb2b02445cfc1de9a778 (diff)
access: a token with a limit changes no credentials
A token's limit narrows every endpoint but those under /auth, which any registered user may call. Among them, PUT and DELETE /auth/keys/{id} change the keys the user logs in with, and POST /auth/logout ends every token of the user. With the token a dashboard hands to another member's (the member list, read, five minutes), its holder could add a key of its own and log in by it as the user, with everything the user may do. These now take a password or a token without a limit (Need::Credentials, refused where Caps::limited). A narrowed token still refreshes within its limit, says who it is, lists the user's keys and ends its own session (DELETE /auth/session): a dashboard opened from another member's logs out with it.
Diffstat (limited to 'src/swarm/changes.rs')
0 files changed, 0 insertions, 0 deletions