Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 22 Sep 02:37
· 39 commits to main since this release

v0.2.1 - Keep credentials out of a failed fetch's message

A Media fetch that fails put the FULL url into the exception message, and an
exception message is logged and shipped to an error tracker as a matter of
course. A url carries credentials often enough that it belongs in neither:
userinfo holds them outright (https://user:pass@host/…), and a presigned
object-storage url puts a bearer-equivalent token in the query string.

The message now carries scheme, host, port and path — which say WHICH fetch
failed, the whole job of the message — and nothing else. A query string that was
present is marked ?[redacted] rather than dropped silently: "there was one and
it is not shown" is a different fact from "there was none".

Matches Media::safeUrl() in the PHP reference (prism#45).

A patch rather than a minor, deliberately: ^0.2.0 resolves it, so a consumer
already on 0.2.x picks the fix up without changing a constraint.