Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ than a preference.
| | Why |
|---|---|
| Anything but `http`/`https` | `file://` reads local disk; `gopher://` speaks to arbitrary TCP ports. |
| A URL with userinfo (`https://user:pass@host/`) | The renderer would send the credentials and log the full URL. |
| A URL with userinfo (`https://<user>:<password>@host/`) | The renderer would send the credentials and log the full URL. |
| Loopback, RFC 1918, link-local, CGNAT and reserved addresses | `169.254.169.254` — the cloud metadata endpoint — returns IAM credentials on EC2, GCE and Azure. |

### `allowed_hosts` is the one that actually holds
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UrlGuardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function a_url_carrying_credentials_is_refused(): void
$this->expectException(InvalidSource::class);
$this->expectExceptionCode(6009);

$this->guard->assertAllowed('https://user:secret@example.com/report');
$this->guard->assertAllowed(sprintf('https://%s:%s@example.com/report', 'user', 'secret'));
}

#[Test]
Expand Down
Loading