fix(gateway): support rootless packaged serve #234
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!234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/rootless-oci-gateway-serve"
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
Fixes the rootless packaged gateway path used by
just serveby making the embedded OCI bundle compatible with rootlessyoukiand repeated local launches.youki0mapped to host65532/dev/nullfor masked path setupFiled follow-up tooling issue for the RGR guard recovery gap encountered during this work: #233.
Verification
rtk just fmtrtk cargo clippy -p ar-gateway --lib -- -D warningsrtk cargo test -p ar-gateway staged_oci_bundle_materializes_config_and_runtime_command_points_at_stage --librtk cargo test -p ar-gateway packaged_oci_runtime_with_staged_bundle_removes_secret_config_after_restrictive_rootfs_success --libnix build --no-link .#checks.x86_64-linux.ar-gateway-embedded-oci-config-contractnix build --no-link .#ar-clitimeout 20s just servelaunched the gateway through the embedded OCI boundary, listened on0.0.0.0:8090, then shut down on timeout SIGTERM as expectedThe PR introduces changes to support rootless packaged gateway paths, focusing on compatibility with rootless
youkiand ensuring unique container IDs. The changes appear well-structured and include necessary tests, but there are potential concerns with environment variable handling and unique ID generation.Walkthrough
Environment Variables:
OCI_RUNTIME_ENV_ALLOWLISTto specify allowed environment variables for the runtime.Unique Container IDs:
unique_packaged_oci_container_idto generate unique IDs using system time and sequence numbers.Cross-Platform Considerations:
staged_oci_config_with_outer_rootless_mapping_idsandremove_staged_oci_bundlehave Unix and non-Unix implementations. Ensure non-Unix implementations are robust.🟡 Warning: Ensure that the
OCI_RUNTIME_ENV_ALLOWLISTincludes all necessary environment variables for the rootless runtime environment. Missing variables could lead to unexpected behavior.This PR modifies the CI workflows by simplifying the artifact handling process and removing certain dependencies. The changes appear to streamline the release process, but ensure that all necessary steps are still covered.
Walkthrough
Δ since
4879158:pr-packagesjob has been removed from the CI workflow, along with its steps for publishing PR artifacts.release-publish.ymlworkflow no longer installsjqandcurl, which may affect steps that previously relied on these tools.🟡 Warning: The removal of
jqandcurlfrom therelease-publish.ymlworkflow may affect any steps that rely on these tools. Verify that their absence does not impact the release process.