Files
codex/codex-rs
viyatb-oai e5c2440d5e Harden SSH host checks for plugin marketplaces (#63806)
## Why

Git and SSH can interpret ambiguous remote URLs differently from the URL parser
used by the marketplace allowlist. A host pattern can therefore match a
different host from the one Git would contact.

## What changed

Validate the SSH authority and repository path before matching a
`host_pattern`. Reject ambiguous host syntax and unsafe usernames in
`ssh://` URLs, and check the host and path in scp-style `git@host:path`
remotes.

## Testing

Add regression cases that reject ambiguous remotes during marketplace add
and verify that host patterns still accept supported SSH usernames,
bracketed IPv6 addresses, and scp-style remotes.

GitOrigin-RevId: 0b7c040c0db2f2f7a802373aeb073969f48cbcd2
2026-11-25 02:14:25 +00:00
..
…
…
…