Skip to content

fix(kubernetes): configure sandbox apparmor profile#1767

Merged
TaylorMutch merged 1 commit into
mainfrom
1643-kubernetes-apparmor/tmutch
Jun 5, 2026
Merged

fix(kubernetes): configure sandbox apparmor profile#1767
TaylorMutch merged 1 commit into
mainfrom
1643-kubernetes-apparmor/tmutch

Conversation

@TaylorMutch
Copy link
Copy Markdown
Collaborator

Summary

Expose Kubernetes AppArmor profile configuration for sandbox agent containers and default the Helm chart to Unconfined so AppArmor-enabled nodes do not block supervisor network namespace setup.

Related Issue

Closes #1643

Changes

  • Added app_armor_profile parsing for Unconfined, RuntimeDefault, and Localhost/<profile> in the Kubernetes driver.
  • Rendered securityContext.appArmorProfile onto sandbox agent containers when configured.
  • Added Helm server.appArmorProfile with default Unconfined and chart tests for default/opt-out rendering.
  • Updated gateway config, Kubernetes setup, compute-driver, architecture, and driver README docs.

Testing

  • mise run pre-commit passes
  • cargo test -p openshell-driver-kubernetes
  • cargo test -p openshell-server kubernetes
  • mise run helm:test
  • mise run helm:docs:check
  • mise run helm:lint
  • mise run e2e:kubernetes

Checklist

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

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

@TaylorMutch TaylorMutch added the test:e2e Requires end-to-end coverage label Jun 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Label test:e2e applied for 5e89437. Open the existing run and click Re-run all jobs to execute with the label set. The run will execute the standard E2E suite after building the required gateway and supervisor images once. The matching required CI gate status on this PR will flip green automatically once the run finishes.

@TaylorMutch TaylorMutch merged commit e26a1b1 into main Jun 5, 2026
54 checks passed
@TaylorMutch TaylorMutch deleted the 1643-kubernetes-apparmor/tmutch branch June 5, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Kubernetes support on AppArmor-enabled host nodes

2 participants