source-controller/internal/controller
abhijith-darshan 46522f9815
(chore): adds tls config for GitHub App auth
this commit ensures that if ca.crt or caFile is available in the github app secret, a tls config with user provided certs is appended to system cert pool and passed to the underlying http transport

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): update target URL for TLSConfigFromSecret

this commit ensures that the target URL for runtime/secrets.TLSConfigFromSecret has the scheme and host

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): adds test scenarios

this commit adds test scenarios for mTLS GitHub app in reconcile source auth strategy

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): use runtime/secrets authMethods

this commit ensures that GitHubApp secret resolution happens via pkg/runtime/secrets

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): update docs

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): adds github app data check

this commit ensures that when provider is github and no github app data is present in the secret, it will error out with invalid configuration

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): removes getProxyOpts helper func

this commit removes the helper method getProxyOpts and uses the standardized pkg/runtime/secrets APIs to get proxy options.

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): removes getProxyOpts test

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): improves test coverage

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): do not stall on missing github app data

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>

(chore): adds a note on mTLS configuration in docs

This commit mentions in the docs that if tls.crt and tls.key is part of the secret then mutual TLS configuration will be automatically enabled and should be used optionally.

Signed-off-by: abhijith-darshan <abhijith.darshan@hotmail.com>
2025-08-12 23:32:12 +02:00
..
testdata
artifact.go
artifact_matchers_test.go
artifact_test.go
bucket_controller.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
bucket_controller_fetch_test.go
bucket_controller_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
common_test.go
gitrepository_controller.go (chore): adds tls config for GitHub App auth 2025-08-12 23:32:12 +02:00
gitrepository_controller_fuzz_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
gitrepository_controller_test.go (chore): adds tls config for GitHub App auth 2025-08-12 23:32:12 +02:00
helmchart_controller.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
helmchart_controller_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
helmrepository_controller.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
helmrepository_controller_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
ocirepository_controller.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
ocirepository_controller_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00
source_predicate.go
suite_test.go Extract storage operations to a dedicated package 2025-08-12 14:57:15 +03:00