mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
fix(admin): list the anonymous user in snapshot views
The auth snapshot built users from the key digest map only. The keyless principal never appeared in usage, catalog, metrics or fleet views, and its rejection counter was pruned on a users-file reload. The snapshot now adds the anonymous principal once, with source anonymous.
This commit is contained in:
@@ -902,7 +902,8 @@ export interface AdminCatalogResponse {
|
||||
/**
|
||||
* One configured user's consumer-directory row (admin.go:
|
||||
* adminConsumerUser — phase 2 redesign). `source` is 'inline' (defined
|
||||
* directly in the plugin config) or 'file' (loaded from users.file);
|
||||
* directly in the plugin config), 'file' (loaded from users.file) or
|
||||
* 'anonymous' (the keyless principal);
|
||||
* `providers`/`models` are this user's OWN personal grant, distinct from
|
||||
* anything their group(s) already allow.
|
||||
*/
|
||||
@@ -910,7 +911,7 @@ export interface AdminConsumerUser {
|
||||
limits?: LimitsConfig
|
||||
limitSources?: LimitSources
|
||||
name: string
|
||||
source: 'inline' | 'file'
|
||||
source: 'inline' | 'file' | 'anonymous'
|
||||
groups: string[]
|
||||
providers?: string[]
|
||||
models?: string[]
|
||||
|
||||
Reference in New Issue
Block a user