fix(gateway): require sandbox image at startup #41
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-10-mandatory-sandbox"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
AR_SANDBOX_IMAGEduring gateway startup and remove production direct-sandbox fallbackVerification
Closes #10
This PR enforces the requirement for
AR_SANDBOX_IMAGEduring gateway startup, removing the fallback to direct host execution. It also introduces clear error messages when neither Podman nor Docker is available. The changes are well-documented across various files, ensuring users are informed of the new requirements. The PR appears safe to merge, with no critical issues identified.Pre-merge checks
Linters
Filepathat line 1 column 1005, 0 findingsThis PR enforces the requirement of
AR_SANDBOX_IMAGEduring gateway startup, removing the fallback to direct-sandbox mode. It also introduces a Forgejo workflow for publishing sandbox images and updates documentation accordingly. The changes appear safe to merge, with minor improvements suggested for YAML and Dockerfile practices.Walkthrough
Gateway Startup Changes
AR_SANDBOX_IMAGEto be set, failing closed if not provided. This ensures that the sandbox image is always used, enhancing security by preventing direct execution on the host.podmanoverdocker, with clear error messages if neither is available.Documentation Updates
AR_SANDBOX_IMAGEand the removal of the direct-sandbox fallback.Dockerfile Improvements
apt-get,pip, andnpmcommands to enhance build reliability and security.Testing Enhancements
AR_SANDBOX_IMAGE.Pre-merge checks
Linters
Filepathat line 1 column 1005, 0 findings@ -0,0 +1,42 @@name: Sandbox image🟡 Warning: Lines 1–42: Consider adding a document start marker
---at the beginning of the YAML file for better compatibility and readability.🟡 Warning: Pin versions in
apt-get installto ensure consistent builds. Specify the package version explicitly.🟡 Warning: Pin versions in
pip installto ensure consistent builds. Specify the package version explicitly or use a requirements file.🟡 Warning: Avoid using cache directory with
pip installto reduce image size. Usepip install --no-cache-dir.@ -40,7 +44,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \# interpreters used by linters that ship as scriptsnodejs npm \python3 python3-pip \🟡 Warning: Pin versions in
npm installto ensure consistent builds. Specify the package version explicitly.🟡 Warning: Set the SHELL option
-o pipefailbeforeRUNwith a pipe to ensure that the command fails if any part of the pipeline fails.Pull request closed