Skip to content

Conversation

@VasylR
Copy link

@VasylR VasylR commented Dec 1, 2023

Add Custom Git Client for WAF-Secured Repos

Introduce a custom Git client to handle repositories behind Web Application
Firewalls (WAF). This client facilitates TLS certificate-based authentication,
enabling secure Git operations in corporate environments.

A typical example of such configuration would be a private Gitlab instance behind Cloudflare web application firewall.
To enable git flow in such environment, one would need to retrieve the TLS keys from Cloudflare and use them to authenticate with Cloudfalre. After successful authentication, the Cloudflare firewall would redirect the request to Gitlab instance.

This is initial commit that works with Gitlab access token. Further development needs to be done to enable more diverse authentication options after the WAF authentication.

Vasyl Rudiuk added 3 commits December 1, 2023 15:59
Introduce a custom Git client to handle repositories behind Web Application
Firewalls (WAF). This client facilitates TLS certificate-based authentication,
enabling secure Git operations in corporate environments.

Signed-off-by: Vasyl Rudiuk <vasilii.rudiuk@gmail.com>
Signed-off-by: Vasyl Rudiuk <vasilii.rudiuk@gmail.com>
Signed-off-by: Vasyl Rudiuk <vasilii.rudiuk@gmail.com>
@rashedkvm rashedkvm requested review from rashedkvm and removed request for rashedkvm December 4, 2023 03:05
In some cases we might need to handle proxy setting for the custom gitClient.

Signed-off-by: Vasyl Rudiuk <vasilii.rudiuk@gmail.com>
@matheuscscp
Copy link
Member

Thanks for this contribution @VasylR, we're busy preparing for KubeCon EU next week, please ping us again after KubeCon to review 🙏

@stefanprodan
Copy link
Member

Closing, please see the implementation requirements for Git mTLS documented here: #1761 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants