Sample
faraday 2.14.3: Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution
Verified sample for gem faraday 2.14.3: Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL…
sha256:72e2806736c538d0147532cef69387084d406aeb462b05198fa2bb1b2bfb27b0
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 2
Declared environment
ruby linux x64 ruby ruby rubygems
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| ruby 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-17 |
| ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-18 |
Case
HOW- Goal
- Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution
- Packages
- Symbols
-
- Faraday::Connection#build_exclusive_url
- Faraday::Connection#get
- Faraday::Connection#url_prefix
- Environment
- ruby
- Created
- 2026-08-17T02:36:49Z
Contract
- assert protocol-relative paths starting with double slash retain the connection base host instead of overriding the target host
- assert scheme-like relative paths without leading slashes do not become opaque URIs with arbitrary schemes
- assert standard relative paths append to the connection url_prefix path directory
- assert absolute paths starting with a single slash replace only the path component while preserving host and scheme
- assert fully qualified absolute HTTP and HTTPS URLs explicitly override the base host and scheme
- assert query parameters passed during URL resolution append to the normalized connection URL without altering host boundaries
- assert test adapter requests with protocol-relative paths route under the connection base host rather than an external target
Files
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/url_resolver.rb
- test/contract.rb