Authenticate public Git repositories proactively - #70204
Open
antonio-mello-ai wants to merge 1 commit into
Open
Conversation
Public HTTPS repositories otherwise use anonymous rate limits even when a Git connection supplies credentials. Native proactive authentication lets Git use the configured identity on the first request without constructing Authorization headers in Airflow.
antonio-mello-ai
marked this pull request as ready for review
July 21, 2026 22:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Public HTTPS repositories can make their initial Git request anonymously even when the Airflow Git connection supplies a username and access token. That request can therefore consume anonymous rate limits before the server challenges for credentials.
This replaces the manually constructed
http.extraHeaderapproach from #63471 with Git's native, URL-scopedhttp.<URL>.proactiveAuth=basicconfiguration:GIT_CONFIG_*entries and pass the hook's complete Git environment to bare-repository fetches;This supersedes #63471, which GitHub does not allow the author to reopen after its maintainer closure.
Closes: #54829
Local validation:
breeze testing providers-tests --test-type "Providers[git]"(132 passed)prek run --from-ref upstream/main --stage pre-commitprek run --from-ref upstream/main --stage manualbreeze ci selective-check --commit-ref c60e77d3cdWas generative AI tooling used to co-author this PR?
Generated-by: OpenAI Codex (GPT-5.6) following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.