Files
BQP/docs/ScriptEngine/Security.md
2026-07-13 09:25:40 +07:00

1.2 KiB

Security & Limitations / Bảo mật & Giới hạn

📋 Overview / Tổng quan

ScriptEngine có các giới hạn về security và metadata references để đảm bảo an toàn.

🔒 MetadataReference Restrictions

Allowed / Được phép

  • System.Runtime
  • System.Collections
  • System.Private.CoreLib
  • RobotNet.Script (ScriptEngine APIs)
  • App-specific DLL

Forbidden / Không được phép

Not included (for security):

  • System.IO (file system access)
  • System.Net (network - trừ khi app explicitly add)
  • System.Reflection.Emit
  • System.Diagnostics.Process

🔐 Thread Safety / An toàn Luồng

Current Design:

  • Variables stored in ConcurrentDictionary (thread-safe dictionary ops)
  • BUT: Complex operations (read-modify-write) NOT atomic

Recommendation: User adds manual locking if needed


Last Updated: 2025-11-13