~/talk

A Python Sandbox for Dynamic Rule Execution

Talkat Conf42 Python 2024 · on Thursday, 2024-02-29· [security]
links:none on file
slides:none on file

A customized Python sandbox implements resource.setrlimit to cap CPU, memory and file usage, uses ast static analysis plus a module/function blocklist to catch malicious patterns before execution, and enforces syscall and timeout limits at runtime. Per‑rule resource profiles allow dynamic allocation. An interpreter pool with preloaded common libraries eliminates per‑request import overhead, solving the observed degradation where 20–30 req/s causes disk IO saturation and latency rising from milliseconds to hundreds or seconds, and it restores sub‑millisecond rule execution.

AI-written summary · about

  1. 0:00intro
  2. 0:20preamble
  3. 0:53agenda
  4. 1:50what is it
  5. 3:04why and why not
  6. 6:50practices
  7. 14:40thanks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.