Skip to content
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

Removes empty credentials from Basic Auth #648

Merged
merged 2 commits into from
Mar 30, 2022
Merged

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Mar 29, 2022

Some git servers are more accommodating than others. Gitlab will try to validate credentials when they are provided, even if they are empty and the target repository is public, leading to a failed authentication error.

Fixes fluxcd/flux2#2596

@pjbgf pjbgf added bug Something isn't working area/git Git related issues and pull requests labels Mar 29, 2022
@pjbgf
Copy link
Member Author

pjbgf commented Mar 29, 2022

This has been already tested against GitLab and GitHub public repositories, so I am expecting no issues with the flux2 E2E test suite.

pkg/git/gogit/transport.go Outdated Show resolved Hide resolved
Paulo Gomes added 2 commits March 30, 2022 10:50
Some git servers are more accommodating than others. Gitlab will try to
validate credentials when they are provided, even if they are empty and
the target repository is public, leading to a failed authentication error.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Expands on the current documentation to help contributors debug the controller
regardless of all its existing dependencies.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

@hiddeco hiddeco merged commit de8f32b into fluxcd:main Mar 30, 2022
@pjbgf pjbgf deleted the gitlab-fix branch March 30, 2022 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Public GitRepository using GitLab Requiring Credentials
3 participants