gitbucket/gitbucket

Git LFS problem when behind a reverse proxy with basic auth

Open

#2,426 opened on Feb 14, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Scala (1,262 forks)batch import
help wanted

Repository metrics

Stars
 (9,371 stars)
PR merge metrics
 (Avg merge 1h 54m) (18 merged PRs in 30d)

Description

Issue

Impacted version: 4.32.0 and 4.33.0

Deployment mode: Reverse proxy with Apache

Problem description:

Hello

We are using GitBucket behind an Apache reverse proxy with Basic authentication, as shown below. https://github.com/gitbucket/gitbucket/wiki/Reverse-proxy-with-Apache

When I tried to push a repository with LFS settings from a Git client on Windows, it failed with the following error message

Authentication required: AuthoriYation error: https://XXXXXXXXX/gitbucket/git-lfs/testuser/lfs-test/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Check that you have proper access to the repository
error: failed to push some refs to 'https://XXXXXXXXXXXX/gitbucket/git/testuser/lfs-test.git'

Pushing the LFS by the following method as a confirmation of the event, respectively, was successful.

  • GitBucket executed with Docker
  • GitBucket executed behind Apache reverse proxy with Basic authentication removed

From this result, it seems that Git LFS cannot be executed properly when GitBucket is used in combination with Basic authentication.

Hope the problem is solved.

Thank you,

Contributor guide