Skip to content

Extend HTTPS proxy support for SSH for fleet.yaml's helm.chart field #4869

@p-se

Description

@p-se

Background

Fleet's fleet.yaml supports a helm.chart field that can reference a Helm chart in a git repository. Downloading these charts is handled by go-getter, which currently shells out to the system git binary for git URLs.

SSH through an HTTPS proxy (introduced for GitRepo.spec.repo in #3595) and custom proxy CA cert support (introduced in #4870) do not extend to this path because the system git binary cannot receive proxy configuration programmatically.

Scope

Once PR #4841 (replace go-getter's GitGetter shellout with go-git) lands, the following can be addressed for helm.chart git downloads in the fleet apply main container:

  1. SSH through HTTPS proxy — reuse pkg/git/proxy.go (implemented in [SURE-9994] Fleet support for SSH proxy servers #3595) via go-git's CloneOptions.
  2. Custom proxy CA cert — deliver the proxy CA cert to the main container (currently only the init container receives it) and load it programmatically using x509.SystemCertPool() + append, consistent with Make CA bundle configurable for HTTPS_PROXY #4870.

Dependency

Blocked on #4841.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Needs QA review

Relationships

None yet

Development

No branches or pull requests

Issue actions