Page MenuHomePhabricator

Override defaults for displayed clone URIs
OpenPublic

Asked by faulconbridge on Aug 19 2016, 4:04 PM.

Details

This is probably a stupid question for a stupidly specific use case, but I'm stumped.

On our company's Phabricator install, I'd like to enforce that all new hosted repositories by default only display the SSH clone URI. Per the documentation, Phabricator defaults to showing BOTH the HTTPS and SSH clone URIs since we:

  • have disabled diffusion.allow-http-auth but have set our default repository view policy to "Public"
  • Only host Git repositories
  • Use https:// in our phabricator.base-uri configuration

We only want to display the SSH URI by default given that these crazy things like "code review" and "version control" are new and scary for many of our users and it's a big enough hurdle to get them using Git without having to explain, "Well, we use a self-signed cert, so Git's going to yell at you if you try to clone over HTTPS without using git -c http.sslVerify=false clone https://..."

The easiest answer is probably to set a more restrictive view policy on all of our repositories, but for various unimportant reasons that isn't desirable to us. I also haven't found any ways to automate this with Conduit.

Is there anything obvious that I'm missing, or is the easiest option to just manually enforce this whenever a new repo gets created?