Skip to content

Keep legacy project approvals within SSH port boundaries - #4606

Merged
max-sixty merged 1 commit into
mainfrom
codex/ssh-port-approval-boundary
Oct 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex/ssh-port-approval-boundary

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A saved approval for host.example/o/r previously authorized project commands from ssh://[email protected]:2222/o/r.git through the legacy identifier fallback. Exclude legacy identifiers that lost the SSH port, including malformed SSH URLs, so approval lookup, project settings, and approval removal use the same server boundary. Safe hostname-case and raw git+ssh compatibility remain.

Non-default-port repositories must reapprove commands under their port-qualified ID and use that ID for project overrides. Regression coverage exercises refused exact and wildcard port-less approvals and successful port-qualified approval through a project alias.

Validation: regression failed before the fix and passes afterward; independent review found no issues; formatting, lint, documentation, and doctests passed. Full local suite: 5,440 passed, one detached-removal timeout; that case passed separately.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 89e6040 into main Oct 27, 2026
38 of 39 checks passed
@max-sixty
max-sixty deleted the codex/ssh-port-approval-boundary branch October 27, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants