Permissions from multiple code hosts at once
Created by: dadlerj
Requested by:
Hi folks. I've been finalising our deployment and had a question about how repository permissions worked.
It's my understanding that they rely upon the information provided by the code host authentication, thus it's preferred that one use your code host for user authentication instead of going to an external SSO provider (e.g. Okta).
Is it possible to apply repository permissions from multiple code hosts, or is it only from the code host that authentication is configured with.
-
https://app.hubspot.com/contacts/2762526/company/1749032193 (see https://sourcegraph.slack.com/archives/C0B2RU51Q/p1602706736156600)
#thanks to @unknwon for earlier confirming that we CAN support multiple code host permissions (e..g multiple GitLabs) at once!
Interestingly, we can support this for GitLab (using sudo access tokens or username equivalency: https://docs.sourcegraph.com/admin/repo/permissions#gitlab) and for Bitbucket Server (see https://docs.sourcegraph.com/admin/repo/permissions#bitbucket-server). But not for GitHub.
So two specific requests here:
- Support username or email-based permission for GitHub (versus ONLY supporting it when GItHub is also the authn provider)
- Simply confirm that Sourcegraph can handle supporting permissions from multiple code hosts with distinct permissions all connected in different ways (has this already been confirmed by you @unknwon ?)
- Confirm whether it's possible to have code host-synced permissions AND explicit permissions for another code host. E.g. for https://app.hubspot.com/contacts/2762526/company/1749032193