mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## 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