authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-06-11 16:10:41-07:00
committergravatar for me@theo.liTheo Browne <me@theo.li> 2026-06-13 22:18:37-07:00
log50bc18b208db39ce1a6fb7200451f999fe457ce2
tree9630329e63ff53fc23cca269fa0c6d2e73aee18f
parent63d42a5e5811e077965a913192bccac1e458774b

fix(preview): declare RPC authorization scopes

Co-authored-by: codex <codex@users.noreply.github.com>

1 files changed, 8 insertions(+), 0 deletions(-)

apps/server/src/ws.ts+8
......@@ -183,6 +183,14 @@ const RPC_REQUIRED_SCOPE = new Map<string, AuthEnvironmentScope>([
183183 [WS_METHODS.terminalClose, AuthTerminalOperateScope],
184184 [WS_METHODS.subscribeTerminalEvents, AuthTerminalOperateScope],
185185 [WS_METHODS.subscribeTerminalMetadata, AuthTerminalOperateScope],
186 [WS_METHODS.previewOpen, AuthOrchestrationOperateScope],
187 [WS_METHODS.previewNavigate, AuthOrchestrationOperateScope],
188 [WS_METHODS.previewRefresh, AuthOrchestrationOperateScope],
189 [WS_METHODS.previewClose, AuthOrchestrationOperateScope],
190 [WS_METHODS.previewList, AuthOrchestrationReadScope],
191 [WS_METHODS.previewReportStatus, AuthOrchestrationOperateScope],
192 [WS_METHODS.subscribePreviewEvents, AuthOrchestrationReadScope],
193 [WS_METHODS.subscribeDiscoveredLocalServers, AuthOrchestrationReadScope],
186194 [WS_METHODS.subscribeServerConfig, AuthOrchestrationReadScope],
187195 [WS_METHODS.subscribeServerLifecycle, AuthOrchestrationReadScope],
188196 [WS_METHODS.subscribeAuthAccess, AuthAccessReadScope],