Distinguish OCI launcher env retrieval failures from missing env vars #149
Labels
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
PR #126 review noted that
prepare_embedded_oci_gatewayshould handle environment variable retrieval errors explicitly.The current implementation uses
env::var(...).ok()for packaged OCI paths and inner gateway env lookup, collapsingNotPresentandNotUnicode. 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.rsrather than onlymain.rs.Source feedback: PR #126 comment 2955.