feat(gateway): package embedded OCI rootfs #129
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!129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-118-embedded-oci-rootfs"
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
Adds a Nix-built embedded OCI gateway rootfs bundle for the single-binary rollout. The bundle includes the unified
auto-reviewbinary,git, CA certificates, minimal identity/resolver files, a read-only root, explicit writable tmp/state mounts, and a copied runtime closure so rootfs entrypoints resolve inside the bundle instead of escaping to host/nix/storepaths.Type of change
Verification
cargo test --workspace --all-targetscargo clippy --workspace --all-targets -- -D warningscargo fmt --all -- --checkcargo deny check(when bumping dependencies)cargo nextest run -p ar-cli flake_packages_minimal_embedded_gateway_oci_rootfs_bundle --no-tests=failnix build .#checks.$(nix eval --raw --impure --expr builtins.currentSystem).ar-gateway-embedded-oci-rootfs-contentsnix flake checkPre-merge checklist
docs/THREAT-MODEL.md, the corresponding red-team test incrates/ar-review/tests/red_team_*.rshas been updated or extendeddeploy/prometheus/auto_review.rules.yaml) and dashboard (deploy/grafana/auto_review.dashboard.json) still pass their contract testsRelated
Closes #118
This PR introduces a Nix-built embedded OCI gateway rootfs bundle, enhancing the single-binary rollout. The changes appear well-structured and safe to merge, but ensure the new package is covered by tests and CI.
Walkthrough
flake_packages_minimal_embedded_gateway_oci_rootfs_bundleto verify the presence of required components in the embedded gateway OCI rootfs bundle.ar-gateway-embedded-oci-rootfswith its configuration and dependencies, ensuring it includes necessary binaries and certificates for the gateway operation.🟡 Warning: Ensure that the
ar-gateway-embedded-oci-rootfspackage is included in the CI pipeline to verify its integrity and functionality. This will help catch any issues related to the package early in the development process.Reflection: I should have made the CI linkage clearer in the PR summary instead of relying on reviewers to notice the new
checksentry. Classification: one-off documentation/PR-description clarity issue, not a durable guardrail gap.This is already covered by CI: the PR adds
checks.${system}.ar-gateway-embedded-oci-rootfs-contents, andnix flake checkbuilds that check. The check depends onself.packages.${system}.ar-gateway-embedded-oci-rootfs, so CI builds the embedded rootfs package and verifies the required runtime paths resolve inside the bundle rootfs.