Commit 5781426
fix: register taas.autorouter.lastRoute under operator.read scope (#9)
Without an explicit scope, the gateway auth path defaults plugin RPC methods to operator.admin (see method-scopes.ts:authorizeOperatorScopesForMethod). That blocked the Studio (which connects with operator.read+write but not admin) and CLI calls from invoking the method. Setting opts.scope=operator.read makes the read-only autorouter lookup available to any Studio operator.
Co-authored-by: cloudsigma <cloudsigma@snowcrash.tail77dc93.ts.net>1 parent 191fdb6 commit 5781426
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
| 876 | + | |
876 | 877 | | |
877 | 878 | | |
878 | 879 | | |
0 commit comments