Skip to content

fix: accept ssh:// protocol URLs in registry validation#405

Merged
RobertLD merged 1 commit intomainfrom
fix/registry-ssh-url-validation
Mar 16, 2026
Merged

fix: accept ssh:// protocol URLs in registry validation#405
RobertLD merged 1 commit intomainfrom
fix/registry-ssh-url-validation

Conversation

@RobertLD
Copy link
Copy Markdown
Owner

Summary

  • Registry URL validation only accepted https:// and SCP-style git@host:path SSH URLs
  • Bitbucket Server uses ssh://git@host:port/path format, which was rejected
  • Users forced to use SCP format with port (git@host:7999/...), which git misinterprets as a path — causing password prompts instead of SSH key auth
  • Added ssh:// protocol support to validateGitUrl()

Test plan

  • Added unit test for ssh:// URL validation
  • All existing registry config tests pass (26/26)

🤖 Generated with Claude Code

Bitbucket Server uses ssh://git@host:port/path format which was rejected
by the URL validator. Only SCP-style (git@host:path) and https:// were
accepted. This caused users to fall back to the SCP format with a port
number, which git misinterprets as a path — leading to password prompts
instead of SSH key auth.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
libscope Ignored Ignored Mar 16, 2026 7:21pm

@RobertLD RobertLD merged commit acb91b1 into main Mar 16, 2026
9 checks passed
@RobertLD RobertLD deleted the fix/registry-ssh-url-validation branch March 16, 2026 19:27
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.

1 participant