diff options
| author | tv <tv@krebsco.de> | 2026-11-09 14:34:52 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-09 16:10:00 +0100 |
| commit | cf2bfaf4f3d54eac5444ae74ecd1407b3eecedd5 (patch) | |
| tree | 63acd212d4f41cd145805db79c545ca0f6bd032a /src/identity.rs | |
| parent | 4dbd83e1c38bb8c2e17884ba3fd5145251b3cc0f (diff) | |
access: a token's limit narrows what an endpoint takes
Review 4, F1: `authorize` decided whether a request's endpoint was allowed by the
user's full capabilities, and applied a token's limit only afterwards, to the `Access`
it left for handlers. The store and the users endpoints read that; nothing else does.
So a token saying less than its user may do (the dashboard's hand-over token, reading
the member list only, for five minutes) did whatever the user may among the other
endpoints, on every node: for an operator, forgetting members, proposing or aborting
remakes, exporting the document, the quarantine, the log filter.
The limit is now applied first, and the endpoint decided by what is left (`allowed`,
its own function now, with a test: the hand-over token of an operator may look, and
nothing else).
Diffstat (limited to 'src/identity.rs')
0 files changed, 0 insertions, 0 deletions
