mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-03 08:10:27 +00:00
feat: flag risky tokens and add a superadmin token review (#12693)
* feat: flag risky tokens in the tokens drawer and add a superadmin token review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: load the whole token review at once and pin the risk rules in a test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: a job tag filter alone does not narrow a privileged token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: flag the rights a token carries, not the rights of its owner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: flag tokens that work in every workspace and filter the review by flag Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf: compute token risks in a view and page the review with a cursor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: trust only reserved labels or short lifetimes as server-managed, keep the review cursor on raw rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: leave a day of clock skew on the server-managed token lifetime Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: make the instance-wide token list and deletion an EE feature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the token list EE in the CE image, which builds private Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to b3c5cbb7edcc42f3db92865896d472cdd8842cf9 This commit updates the EE repository reference after PR #1020 was merged in windmill-ee-private. Previous ee-repo-ref: 51a2425e60989d727d40330bdfa7b2d302224c9c New ee-repo-ref: b3c5cbb7edcc42f3db92865896d472cdd8842cf9 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
windmill-internal-app[bot]
parent
b2f3986f94
commit
51e9017c67
@@ -54,6 +54,13 @@ Symbols, not line numbers, are cited: they drift less.
|
||||
expiry or another login changes or drops it. A session revoked server-side keeps its hint,
|
||||
so until `whoami` answers that browser still renders as its own last user.
|
||||
- **`tokens/impersonate`** (superadmin) returns a multi-use token and sets no cookie.
|
||||
- **Token risk flags** (rights the token was minted with and no scope narrows, not bound to a
|
||||
workspace, no expiration, unused 90 days) are computed once, by the `token_risk` view, which also
|
||||
marks the tokens the server expires or renews on its own (`self_managed`, no flags). The user's
|
||||
`tokens/list` and `tokens/risk_counts` and the superadmin review read it: its counts
|
||||
(`tokens/risk_counts_as_super_admin`) in CE, its list (`tokens/list_as_super_admin`, cursor-paged
|
||||
on `(last_used_at, token_prefix)`) and `tokens/delete_as_super_admin/{email}/{prefix}` in EE
|
||||
(`users_ee.rs`); `frontend/src/lib/components/settings/tokenRisks.ts` only words the flags.
|
||||
- **`GET /api/tokens/introspect`** describes the credential presenting it, never one named in
|
||||
the request, and resolves it in the handler rather than through `ApiAuthed`: the route layer
|
||||
would refuse a scoped token there, and a workspace-bound one resolves on no global route. Its
|
||||
|
||||
Reference in New Issue
Block a user