chore(orch): remove unnecessary ALLOW_SANDBOX_INTERNET#2634
Conversation
PR SummaryHigh Risk Overview Reviewed by Cursor Bugbot for commit 88988c5. Bugbot is set up for automated code reviews on this repo. Configure here. |
❌ 9 Tests Failed:
View the top 1 failed test(s) by shortest run time
View the full list of 14 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Code Review
A security risk exists during rolling updates because the orchestrator no longer respects the allow_internet_access field while it is still being transitioned in the API. New orchestrator instances will ignore this field from older API instances, potentially granting unintended internet access. The field should remain deprecated and respected until the migration is verified. Additionally, the API response for existing sandboxes is now inaccurate because the AllowInternetAccess parameter is hardcoded to nil in GetSandboxes. This value should be reconstructed from the network configuration's denied CIDRs.
c7da6d4 to
5107f7d
Compare
Drop the ALLOW_SANDBOX_INTERNET env var plumbing from Terraform (provider-gcp, provider-aws, job-orchestrator module, GCP Makefile) and the matching orchestrator config/logic. Sandbox internet access is now controlled solely via the per-sandbox network config.
5107f7d to
88988c5
Compare
API is setting the network config based on that parameter already, so this isn't needed anymore