Commit 4536803
[iris] Apply max_band cap in anonymous auth mode too
Budgets should bite regardless of whether auth is configured. The cap
previously short-circuited on self._auth.provider, which meant a cluster
running without auth (the default for examples/marin.yaml) couldn't
enforce tier limits even though user_budgets rows were reconciled from
the cluster config.
Now the cap fires whenever any caller submits, keyed on the claimed
job_id.user. PRODUCTION still requires MANAGE_BUDGETS when auth is on
(admin path); in anonymous mode PRODUCTION falls through to the cap and
is rejected unless the claimed user's user_budgets row permits it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f12863f commit 4536803
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1060 | 1067 | | |
1061 | 1068 | | |
1062 | 1069 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | 1070 | | |
1067 | | - | |
| 1071 | + | |
1068 | 1072 | | |
1069 | 1073 | | |
1070 | 1074 | | |
| |||
0 commit comments