Skip to content

Harden sandbox credential secret lifecycle - #364

Merged
yottadynamics merged 2 commits into
mainfrom
worktree-snazzy-puzzling-noodle
Sep 27, 2026
Merged

yottadynamics merged 2 commits into
mainfrom
worktree-snazzy-puzzling-noodle

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

Adds secure Podman secret delivery for sandbox env_passthrough credentials and hardens the secret lifecycle:

  • Validates passthrough environment variable names before shell interpolation.
  • Delivers credentials through per-session Podman secrets instead of container environment config.
  • Re-exports mounted secrets for each sandbox command.
  • Labels and prunes orphaned secrets.
  • Removes the container before removing mounted secrets during teardown.
  • Bounds Podman secret cleanup operations with timeouts.
  • Preserves explicitly set empty environment variables.
  • Adds unit and integration coverage for secret delivery, cleanup, pruning, and validation.

How was this tested?

  • go test ./...
  • go vet ./...
  • LSP diagnostics for changed source files

All passed.

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • govulncheck ./... reports no reachable vulnerabilities
  • Tests added or updated
  • Docs updated for the user-facing sandbox credential behavior
  • PR is focused on one logical change

Drafted with yottacode

yottadynamics and others added 2 commits September 21, 2026 21:52
Co-authored-by: yottacode <325888353+yottacode-agent@users.noreply.github.com>
@yottadynamics
yottadynamics merged commit 7e34c3d into main Sep 27, 2026
7 checks passed
@yottadynamics
yottadynamics deleted the worktree-snazzy-puzzling-noodle branch September 27, 2026 00:51
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