Skip to content

[v5] plumbing: support mTLS for HTTPS protocol #1510

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

Merged
merged 3 commits into from
Apr 13, 2025

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Apr 12, 2025

This adds support for mTLS for the HTTPS protocol, the same way custom CA bundles were introduced for v5. It is specifically targeting v5, as I believe in v6 we may benefit from a full rehaul of how we work with transports (and may benefit from more fine-grain http.Transport injection).

@hiddeco hiddeco changed the title [v5] transport: support mTLS for HTTPS protocol [v5] plumbing: support mTLS for HTTPS protocol Apr 12, 2025
@hiddeco hiddeco added the enhancement New feature or request label Apr 12, 2025
@hiddeco hiddeco added this to the v5.13.0 milestone Apr 12, 2025
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco marked this pull request as ready for review April 12, 2025 09:58
@@ -245,6 +263,8 @@ func newSession(c *client, ep *transport.Endpoint, auth transport.AuthMethod) (*
configureTransport(transport, ep)
Copy link
Member Author

Choose a reason for hiding this comment

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

Is the error swallowing here on purpose? It seems like this could result in unexpected behavior.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so, we should at the very least log it. Do you mind handling the errors from the configureTransport calls into a separate commit please?

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco requested a review from pjbgf April 12, 2025 10:07
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@pjbgf pjbgf merged commit 763ce2e into go-git:releases/v5.x Apr 13, 2025
12 of 13 checks passed
@hiddeco hiddeco deleted the mtls-support branch April 13, 2025 15:32
@hiddeco hiddeco removed this from the v5.13.0 milestone Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants