Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support popular GitLab instances out the box #677

Closed
hickford opened this issue Apr 26, 2022 · 2 comments
Closed

Support popular GitLab instances out the box #677

hickford opened this issue Apr 26, 2022 · 2 comments
Assignees
Labels
gcm Related to Git Credential Manager host:gitlab Specific to the GitLab host provider

Comments

@hickford
Copy link
Contributor

hickford commented Apr 26, 2022

GCM supports gitlab.com out the box. Other GitLab instances require special setup, including creating an OAuth application (typically something done by OAuth application developers rather than users). More user friendly would be to ship with support for popular GitLab instances.

Previous discussion raised reasoned concerns about fairness and maintenance burden:

we should not hardcode public instances outside of the host-maintained offering (gitlab.com, github.com, etc). Doing so opens the project and maintainers up to a lot of risk and burden. Instances come and go over time. Some may construe support of some instances as being an endorsement of that entity. The potentially unbounded number of requests to add a new instance is not scalable. It's not fair to decide to take some instances over others.

Good points. Indeed, a quick web search reveals dozens of small academic GitLab instances.

In the "ethos of GCM as an open, universal and agnostic project", I tried to come up with narrow but fair criteria for including other instances that would help the most users but minimise maintenance burden:

  1. (maturity) associated with an established open-source project of five or more years
  2. (scale) has a repo with at least 100 stars
  3. (community) has an compatible inclusive code of conduct
  4. (open) anyone can create an account (necessary for GCM team to create OAuth application)

These would be satisfied by only a handful of popular GitLab instances, all associated with 'household name' open-source projects of good reputation:

How does that sound? That would help thousands of open source developers with minimal maintenance burden (approx 5 minutes per instance to create OAuth application).


Workaround: If it helps anyone else in the meantime, here is unofficial config for the above instances.

git config --global credential.https://gitlab.freedesktop.org.gitlabdevclientid 6503d8c5a27187628440d44e0352833a2b49bce540c546c22a3378c8f5b74d45
git config --global credential.https://gitlab.freedesktop.org.gitlabdevclientsecret 2ae9343a034ff1baadaef1e7ce3197776b00746a02ddf0323bb34aca8bff6dc1
git config --global credential.https://gitlab.gnome.org.gitlabdevclientid adf21361d32eddc87bf6baf8366f242dfe07a7d4335b46e8e101303364ccc470
git config --global credential.https://gitlab.gnome.org.gitlabdevclientsecret cdca4678f64e5b0be9febc0d5e7aab0d81d27696d7adb1cf8022ccefd0a58fc0
git config --global credential.https://salsa.debian.org.gitlabdevclientid 213f5fd32c6a14a0328048c0a77cc12c19138cc165ab957fb83d0add74656f89
git config --global credential.https://salsa.debian.org.gitlabdevclientsecret 3616b974b59451ecf553f951cb7b8e6e3c91c6d84dd3247dcb0183dac93c2a26
git config --global credential.https://gitlab.haskell.org.gitlabdevclientid 57de5eaab72b3dc447fca8c19cea39527a08e82da5377c2d10a8ebb30b08fa5f
git config --global credential.https://gitlab.haskell.org.gitlabdevclientsecret 5170a480da8fb7341e0daac94223d4fff549c702efb2f8873d950bb2b88e434f
git config --global credential.https://code.videolan.org.gitlabdevclientid f35c379241cc20bf9dffecb47990491b62757db4fb96080cddf2461eacb40375
git config --global credential.https://code.videolan.org.gitlabdevclientsecret 631558ec973c5ef65b78db9f41103f8247dc68d979c86f051c0fe4389e1995e8
@hickford hickford added the host:gitlab Specific to the GitLab host provider label May 13, 2022
@mjcheetham mjcheetham self-assigned this May 25, 2022
@abisai1

This comment was marked as spam.

@keanenwold keanenwold added the gcm Related to Git Credential Manager label Nov 17, 2022
@ldennington
Copy link
Contributor

The docs at this link contain a popular set of instances. We may consider adding other instances to this documentation in the future, but do not plan to put them into the GCM codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gcm Related to Git Credential Manager host:gitlab Specific to the GitLab host provider
Projects
None yet
Development

No branches or pull requests

5 participants