From baf778f7a6037fcb7ae223cfbd071ee87ab76053 Mon Sep 17 00:00:00 2001 From: tqchen Date: Tue, 17 Sep 2024 10:15:24 -0400 Subject: [PATCH] [DOCS] More clarity on security model of RPC server This PR updates the python docstrings to include more clarity on RPC server security model. --- python/tvm/rpc/__init__.py | 5 +++++ python/tvm/rpc/server.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/python/tvm/rpc/__init__.py b/python/tvm/rpc/__init__.py index b64ba33d9e09..91e042b55fa1 100644 --- a/python/tvm/rpc/__init__.py +++ b/python/tvm/rpc/__init__.py @@ -23,6 +23,11 @@ The test program compiles the program on local server, upload and run remote RPC server, get the result back to verify correctness. + +TVM RPC server assumes that the user is trusted and needs to be +used in a trusted network environment and encrypted channels. +It allows writings of arbitrary files into the server and provide +full remote code execution capabilities to anyone who can access this API. """ from .server import Server diff --git a/python/tvm/rpc/server.py b/python/tvm/rpc/server.py index 7c1a19856211..63c0a92ab8e1 100644 --- a/python/tvm/rpc/server.py +++ b/python/tvm/rpc/server.py @@ -474,6 +474,11 @@ class Server(object): Note ---- + TVM RPC server assumes that the user is trusted and needs to be + used in a trusted network environment and encrypted channels. + It allows writings of arbitrary files into the server and provide + full remote code execution capabilities to anyone who can access this API. + The RPC server only sees functions in the tvm namespace. To bring additional custom functions to the server env, you can use server_init_callback.