Skip to content

Commit

Permalink
[DOCS] More clarity on security model of RPC server (#17382)
Browse files Browse the repository at this point in the history
This PR updates the python docstrings to include
more clarity on RPC server security model.
  • Loading branch information
tqchen authored Sep 19, 2024
1 parent 36e3c12 commit 660fd1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tvm/rpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions python/tvm/rpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 660fd1e

Please sign in to comment.