fix(revyl): require explicit artifact origins

Closed
TH
2d ago
+333-34

Summary

Require operator-configured exact origins before Revyl uploads build bytes or passes a storage URL to its worker. Keep storage policy daemon-owned and outside credential fingerprints. Each plugin option entry remains one origin. Review follow-up clarifies daemon setup, the loopback exception, and empty-array override; invalid policy errors no longer echo userinfo or query secrets. Stacked on #5244.

Before / after

  • Before: one artifactOrigins entry could admit two origins. After: the entry fails with invalid_provider_url.
  • Before: a daemon policy value could trigger a credential mismatch in a key-only CLI shell. After: the daemon applies the policy without fingerprinting it.
  • Before: invalid origin errors included the full configured value. After: errors contain only the typed reason and general guidance.

Validation

Head: 2ed3a6e360. Focused pnpm exec vitest run --project unit-core packages/provider-revyl/src/revyl-client.test.ts passed 25/25, including secret-redaction coverage. Prior focused index.test.ts passed 8/8 at b0b908d377; applicable CI passed at that prior head. CI at this head is pending. Live Revyl install remains unverified because no live credentials or device were available.