Skip to content

feat(sandbox): derive policy from CDI context - #2776

Open
elezar wants to merge 4 commits into
1606-cdi-policy-core/elezarfrom
1606-cdi-sandbox-consumer/elezar
Open

feat(sandbox): derive policy from CDI context#2776
elezar wants to merge 4 commits into
1606-cdi-policy-core/elezarfrom
1606-cdi-sandbox-consumer/elezar

Conversation

@elezar

@elezar elezar commented Aug 17, 2026

Copy link
Copy Markdown
Member

Summary

Consume the validated CDI context in the sandbox supervisor and derive its filesystem and process policy through a fail-closed boundary. This is the second PR in the #1606 stack.

Related Issue

Part of #1606. Depends on the core CDI resolver PR.

Changes

  • Restrict CDI context consumption to the fixed supervisor path and mounted spec root.
  • Enrich sandbox policies with CDI-derived requirements.
  • Merge CDI supplemental groups into the common identity used for workspace validation and privilege dropping.

Testing

  • mise run pre-commit passes (exceeded the local command timeout during Rust lint).
  • Unit tests added/updated
  • E2E tests added/updated (covered by the Docker producer PR)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@github-actions

Copy link
Copy Markdown

@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from d70ce87 to a8c2b8e Compare August 17, 2026 13:20
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from a8c2b8e to 0fe6e5c Compare August 17, 2026 13:25
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from 0fe6e5c to 729bcbd Compare August 17, 2026 14:02
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from 729bcbd to 7c9ba8c Compare August 17, 2026 14:04
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from 7c9ba8c to a2ac7f1 Compare August 18, 2026 09:38
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from a2ac7f1 to 4571fd3 Compare August 18, 2026 10:24
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch 4 times, most recently from ebf0f08 to 0c7cd4a Compare August 18, 2026 11:55
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from 31ca9f5 to f3c61d1 Compare August 18, 2026 12:53
elezar added 4 commits August 19, 2026 09:49
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar force-pushed the 1606-cdi-sandbox-consumer/elezar branch from ef0a9c8 to 6e38235 Compare August 19, 2026 07:50
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