core: enforce allowRemoteCommand on the host (#7370)

This commit is contained in:
spaced4ndy authored and GitHub committed 2026-08-13 11:56:22 +00:00
1 parent 493fb9cee8
commit 6fcfbd54c5
7 files changed
+25 -15

No files matched your search

+1 -1
View File
@@ -553,7 +553,7 @@ liftRC = liftError (ChatErrorRemoteCtrl . RCEProtocolError)
handleSend :: (ByteString -> Int -> CM' (Either ChatError ChatResponse)) -> Text -> Int -> CM' RemoteResponse
handleSend execCC command retryNum = do
logDebug $ "Send: " <> tshow command
-- execCC checks for remote-allowed commands
-- execCC is execChatCommand CSRemoteCtrl, which checks allowRemoteCommand
-- convert errors thrown in execCC into error responses to prevent aborting the protocol wrapper
RRChatResponse . eitherToResult <$> execCC (encodeUtf8 command) retryNum