fix(providers): bound credential endpoints and responses

TH
40m ago
+632-37

Summary

Require HTTPS or loopback HTTP before provider credentials or Limrun file requests leave the client. Fence every header-bearing Limrun download to its expected origin; keep headerless release redirects. Bound provider responses and downloads, release oversized bodies, and preserve typed size and dispatch reasons. Admit Revyl artifact URLs on its configured HTTPS IP origin while refusing other loopback hosts. This is the provider layer of the Daybreak remediation stack, based on #5243.

Before / after

  • Before: a custom-header download could follow a redirect without an origin fence; after: any caller header requires an expected origin and disables redirects.
  • Before: Limrun file list/upload/delete could send a bearer to a cleartext remote API; after: the API URL is admitted before creating those operations.
  • Before: an oversized WebDriver answer could lose its dispatch disclosure; after: it retains the size reason and dispatched: unknown.

Validation

Head 81674eeaf8. Six changed test files passed (110/110). The focused eager-closure budget test passed (929/929) after localizing the provider response reason in the already-loaded remote facade. The reason-table test passed (5/5) after restoring its source summary. git diff --check passed. Current-head CI is pending. Live Limrun runner staging and recording download remain unverified before merge. Revyl's storage-origin contract remains unverified and is handled in the next stack layer.