Skip to content

refactor(runtime): extract security types into advanced_options module#253

Merged
DorianZheng merged 1 commit intomainfrom
refactor/advanced-options
Feb 13, 2026
Merged

refactor(runtime): extract security types into advanced_options module#253
DorianZheng merged 1 commit intomainfrom
refactor/advanced-options

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • Extract SecurityOptions, ResourceLimits, and AdvancedBoxOptions from runtime::options into a dedicated runtime::advanced_options module
  • Add SeccompRole enum and multi-role filter support to jailer::seccomp (preparation for two-phase stacking)
  • Update all SDK imports (Python, Node) to use the new module paths
  • Remove deprecated jailer::config module (re-exported types now live in advanced_options)

Motivation

runtime::options had grown to include both user-facing box options and internal security/isolation types. Extracting security types into advanced_options provides:

Test plan

  • cargo check -p boxlite -p boxlite-python -p boxlite-node -p boxlite-cli — clean
  • cargo test -p boxlite-node — 5/5 pass
  • Node SDK security options passthrough preserved (routes through AdvancedBoxOptions.security)
  • CI checks

@DorianZheng DorianZheng force-pushed the refactor/advanced-options branch 2 times, most recently from 963a7da to 0c283e9 Compare February 13, 2026 06:18
Move SecurityOptions, ResourceLimits, SecurityOptionsBuilder, and
AdvancedBoxOptions from options.rs into a dedicated advanced_options.rs
module. Rename AdvancedOptions to AdvancedBoxOptions to reflect its
association with BoxOptions.

Eliminate re-export patterns — all imports now reference source modules
directly. Delete jailer/config.rs (was a pure re-export file).

Also adds SECCOMP_FILTER_FLAG_TSYNC support for thread-synchronized
seccomp filters on Linux.
@DorianZheng DorianZheng force-pushed the refactor/advanced-options branch from 0c283e9 to 2d8fd63 Compare February 13, 2026 06:18
@DorianZheng DorianZheng merged commit 8187444 into main Feb 13, 2026
26 checks passed
@DorianZheng DorianZheng deleted the refactor/advanced-options branch February 13, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant