Skip to content

Harden devcontainer: pin digests, guard SYS_ADMIN, fix mount filters#20

Merged
dguido merged 1 commit intomainfrom
hardening-cleanup
Feb 10, 2026
Merged

Harden devcontainer: pin digests, guard SYS_ADMIN, fix mount filters#20
dguido merged 1 commit intomainfrom
hardening-cleanup

Conversation

@dguido
Copy link
Copy Markdown
Member

@dguido dguido commented Feb 10, 2026

Summary

Closes #14, closes #15, closes #16, closes #17, closes #18, closes #19

Test plan

  • shellcheck install.sh — clean
  • python3 -m py_compile post_install.py — clean
  • jq . devcontainer.json — valid JSON
  • hadolint Dockerfile — only pre-existing informational warnings (DL3008, DL3059)
  • SYS_ADMIN guard: rejects SYS_ADMIN, allows NET_ADMIN, handles missing file
  • Mount filter: filters all default mounts, preserves custom mounts, handles empty
  • docker build succeeds
  • fzf --version → 0.67.0
  • fzf --zsh integration works
  • uv --version → 0.10.0

🤖 Generated with Claude Code

Address review feedback from #14#19:

- Pin base image and uv with SHA256 digests (#15)
- Install fzf from GitHub releases instead of apt (#14)
- Add SYS_ADMIN capability guard to prevent remount attacks (#16)
- Fix mount filter to use target paths instead of source prefixes (#17)
- Fix temp file leak in extract_mounts_to_file (#17)
- Sort apt packages alphabetically (#18)
- Remove unused Tailscale feature (#19)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dguido dguido merged commit a1f3994 into main Feb 10, 2026
3 checks passed
@dguido dguido deleted the hardening-cleanup branch February 10, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant