Distinguish OCI launcher env retrieval failures from missing env vars #149

Closed
opened 2026-05-07 15:06:54 -07:00 by jwilger · 0 comments
Owner

PR #126 review noted that prepare_embedded_oci_gateway should handle environment variable retrieval errors explicitly.

The current implementation uses env::var(...).ok() for packaged OCI paths and inner gateway env lookup, collapsing NotPresent and NotUnicode. Required non-Unicode values are reported as missing, and optional allowlisted values may be silently omitted.

Add focused tests for non-Unicode env values where feasible, return sanitized diagnostics that name the env var without echoing values, and consider updating the env-parsing guardrail so it covers crates/ar-gateway/src/startup.rs rather than only main.rs.

Source feedback: PR #126 comment 2955.

PR #126 review noted that `prepare_embedded_oci_gateway` should handle environment variable retrieval errors explicitly. The current implementation uses `env::var(...).ok()` for packaged OCI paths and inner gateway env lookup, collapsing `NotPresent` and `NotUnicode`. Required non-Unicode values are reported as missing, and optional allowlisted values may be silently omitted. Add focused tests for non-Unicode env values where feasible, return sanitized diagnostics that name the env var without echoing values, and consider updating the env-parsing guardrail so it covers `crates/ar-gateway/src/startup.rs` rather than only `main.rs`. Source feedback: PR #126 comment 2955.
jwilger added this to the 1.0 milestone 2026-05-08 11:43:27 -07:00
jwilger added this to the (deleted) project 2026-05-10 07:35:54 -07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Slipstream/auto_review#149
No description provided.