-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 OAuth flow for GitHub Enterprise Server #21485
Comments
Didn't mangae to start github enterprise instance localy. Need a remote instance: https://enterprise.github.com/releases/3.5.1/download |
@l0rd could you please help with this |
OAuth flow for GitHub hosted version of GitHub enterprise works without any changes. To work on the server version need an instance with the application. |
We discussed that today with @benoitf and @ibuziuk. On prem GitHub instances have URLs that don't match this regexp (the URL is typically something like And yes, the problem about how to test it isn't solved. |
Using a Git Provider Access Token may be a workaround. |
I don't think so. We would still need an endpoint to test the feature. |
@vinokurig but with the PAT secret a user can specifies the |
@l0rd You are right that Git Provider Access Token can be a workaround for a user, but not for us to work on this issue. |
@vinokurig added this issue to the next sprint as a highly important case to resolve. Just wondering if you have tried - https://docs.github.com/en/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-cloud ? (it has 30 days trial ) |
and https://docs.github.com/en/get-started/signing-up-for-github/setting-up-a-trial-of-github-enterprise-server is 45 days trial as well |
The link refers to a cloud version of GitHub enterprise whis is already supported by Che. The issue is to support the server version of GitHub enterprise. |
Yes but it requires a spcific environment to setup: https://docs.github.com/en/enterprise-server@3.6/admin/overview/about-github-enterprise-server#supported-environments-for-deployment |
@vinokurig you can get credits on Azure as well (trial) to deploy it |
The free subscription is too weak for the github-server application: |
I think you need to use the $ credits, not the free instance https://docs.gitlab.com/ee/install/azure/ (I know it's gitlab but it shows you how to use free credits $ to setup the machines on azure, gcp or amazon) |
Managed to launch an instance in a local virtualbox machine |
Additional information from users: OpenShift DevSpaces v3.1.0 is not able to pull repos from GitHub Enterprise private repos even after defining the needed secrets as called in the docs at https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.1/html/user_guide/using-credentials-and-configurations-in-workspaces. You can find the all the our manifests (reference to support case). What is the business impact? Please also provide timeframe information. Where are you experiencing the behavior? What environment? |
@RickJWagner It does not looks like using GHE PAT workaroud described above does not either ... please find the details around our usecase @ https://gist.github.com/spuranam/f47d985ada94a7c0c1ee1c8553579119 |
@RickJWagner here is more info about my test setup: OpenShift: v4.11.1 |
@l0rd @RickJWagner @spuranam The PR has been opened, see the link above. Please note that this just extends the current GitHub provider. It means that if the provider is configured to an Enterprise Server endpoint, the Cloud support won't be available, and vice versa. |
I confirm that the manual PAT flow doesn't work for GitHub Enterprise server case, even with my PR. Do we need to support it? |
Supporting only either GitHub enterprise server or
We don't need to support it right now. |
sync'd to Red Hat JIRA https://issues.redhat.com/browse/CRW-3352 |
Backported to 7.52 / 3.2 in eclipse-che/che-server@b35291d |
Is your task related to a problem? Please describe
Currently OAuth flow is supported for GitHub SAAS (github.com and GitHub Enterpise Cloud). We need to add the support for the on-premises version (GitHub Enterprises Server).
Describe the solution you'd like
Add a new or modify the existing GitHub OAuth handler.
Release Notes Text
Administrators can now configure Che instances to automatically connect to GitHub Enteprise Server to retrieve and configure users personal access tokens. Note the GitHub Enterprise Cloud was already supported.
The text was updated successfully, but these errors were encountered: