Skip to content

github: detect GitHub Proxima hosts - #2498

Merged
mjcheetham merged 2 commits into
git-ecosystem:mainfrom
mjcheetham:gh-proxima
Nov 9, 2026
Merged

mjcheetham merged 2 commits into
git-ecosystem:mainfrom
mjcheetham:gh-proxima

Conversation

@mjcheetham

@mjcheetham mjcheetham commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Enterprise with Data Residency (aka Proxima) has is a cloud-native offering of GHE, hosted in Azure.

All Proxima instances exist as a subdomain of *.ghe.com, so let's ensure our host detection can pick these up to avoid an expensive network probe.

Proxima also has some special behaviour and differences from GHES and DotCom. One difference is that the /meta API endpoint requires authentication, so it cannot be used to query what authentication modes are available; the catch-22 situation!

Today, GCM will attempt and fail to query the meta endpoint with a warning message like:

warning: Failed to query 'https://foo.ghe.com/' for supported authentication schemes.

Instead, we specify the set of authentication modes that Proxima hosts can support as PAT & OAuth.

We also update the way we compute an API endpoint, since Proxima is more like Dotcom than it is GHES. The former has the API endpoint sit off of an api subdomain, whereas the latter uses an /api/v{version} route.

GitHub Enterprise with Data Residency (aka Proxima) has is a
cloud-native offering of GHE, hosted in Azure.

All Proxima instances exist as a subdomain of *.ghe.com, so let's ensure
our host detection can pick these up to avoid an expensive network probe.

Proxima also has some special behaviour and differences from GHES and
DotCom. One difference is that the /meta API endpoint requires
authentication, so it cannot be used to query what authentication
modes are available; the catch-22 situation!

Instead, we specify the set of authentication modes that Proxima hosts
can support as PAT & OAuth.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham
mjcheetham requested a review from a team as a code owner November 7, 2026 17:04
@mjcheetham mjcheetham added the host:github Specific to the GitHub host provider label Nov 7, 2026

@dscho dscho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@dscho

dscho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Hmm. No idea what's going on with CI:

[...]
No usable version of libssl was found
/__w/git-credential-manager/git-credential-manager/build/linux/publish.sh: line 111:   497 Aborted                    (core dumped) dotnet publish "$GCM_SRC" -v:normal --configuration="$CONFIGURATION" --runtime="$RUNTIME" --output "$OUTDIR" -p:PublishAot=$AOT -p:VersionOverride="$VERSION"
fatal: Failed to publish application
Error: Process completed with exit code 1.

GitHub.com and Proxima both have their API endpoints at the api.
subdomain, rather than GHES which has an /api/v{version} route.

Update our logic for computing the API request URLs to also handle
GitHub Proxima like we do for DotCom.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham
mjcheetham requested a review from dscho November 9, 2026 10:46
@mjcheetham

Copy link
Copy Markdown
Contributor Author

Thanks for the review @dscho, but I realised I missed also updating the API request URL logic for Proxima. Could you please also look at the new commit I just pushed please? 8420f834d0a94d9de827cebb2153cf3f35c22e9d

@dscho dscho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The additional commit also looks correct to me, but I have to lament that it is necessary: a more consistent design of GHES/Proxima's workings would have been appreciated.

@mjcheetham
mjcheetham merged commit bb08308 into git-ecosystem:main Nov 9, 2026
35 of 38 checks passed
@mjcheetham
mjcheetham deleted the gh-proxima branch November 9, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host:github Specific to the GitHub host provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants