Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
freestyleas a built-in sandbox backend so environments and agents can run in Docker-capable Freestyle VMs. The existing VM helpers supply image/artifact deployment and container file handling; the adapter supplies root command execution, binary host-file writes, HTTPS ports, resource growth, reconnection, attribution metadata, and teardown. It uses the existinghttpxdependency.VM creation declares its firewall and HTTPS routes together, sets an absolute TTL, and cleans up setup failures and cancellation. Configuration resolves credentials through the existing config/secret-store mechanism; credentials are never injected into the guest.
This first adapter supports
allow_allegress. Restricted policies fail before provisioning so fallback chains can select another backend. Commands use the buffered exec API with a maximum five-minute runtime; longer services run in Docker or in the guest background. Snapshot resource minimums are retained because Freestyle only resizes upwards. The provider guide documents these limits and configuration.Validation:
freestyle/ubuntu-sm, where CPU, memory and storage growth were exercised and verified (3 vCPUs, 5,120 MiB memory, 17 GiB disk). All test VMs were deleted.helloruns passed with no remaining sandbox work folders (Python 3.11).git diff --checkpassed.remote_sandboxcapability gate and skips without configured credentials.Local Docker integration and installer tiers were not run: the local Docker daemon is unavailable. Opening as a draft for maintainer discussion of the provider contract and limits before review/merge.
Upstream CI is awaiting maintainer approval for this fork: the three GitHub workflows report
action_required, and CodeBuild reports that the build was not triggered because pull request approval is required. Socket Security checks passed.