Skip to content

EPMDEDP-17134: fix: remove unused GitLab InsecureSkipVerify#70

Merged
MykolaMarusenko merged 1 commit into
mainfrom
EPMDEDP-17134-gitlab-tls-ca-trust
Jun 28, 2026
Merged

EPMDEDP-17134: fix: remove unused GitLab InsecureSkipVerify#70
MykolaMarusenko merged 1 commit into
mainfrom
EPMDEDP-17134-gitlab-tls-ca-trust

Conversation

@SergK

@SergK SergK commented Jun 28, 2026

Copy link
Copy Markdown
Member

Snyk SAST flagged InsecureSkipVerify: true (CWE-295) in the GitLab client. It was an off-by-default, env-gated path that was never used: gitfusion already verifies TLS against Go's default system trust store. Private or self-signed CAs are trusted by mounting the CA into the container trust store (the platform-standard pattern, as the codebase-operator does), so removing the flag keeps certificate verification always on with no functional change.

Document the CA-mount approach in the README and chart values, and inline the now-trivial HTTP client helper. Validated end-to-end against a self-signed GitLab: repository, branch, organization and pipeline discovery succeed with the CA mounted and fail closed with an x509 "unknown authority" error without it.

Snyk SAST flagged InsecureSkipVerify: true (CWE-295) in the GitLab client. It was an
off-by-default, env-gated path that was never used: gitfusion already verifies TLS against
Go's default system trust store. Private or self-signed CAs are trusted by mounting the CA
into the container trust store (the platform-standard pattern, as the codebase-operator does),
so removing the flag keeps certificate verification always on with no functional change.

Document the CA-mount approach in the README and chart values, and inline the now-trivial
HTTP client helper. Validated end-to-end against a self-signed GitLab: repository, branch,
organization and pipeline discovery succeed with the CA mounted and fail closed with an x509
"unknown authority" error without it.
@SergK SergK requested a review from a team as a code owner June 28, 2026 17:50
@MykolaMarusenko MykolaMarusenko merged commit a909e81 into main Jun 28, 2026
2 checks passed
@MykolaMarusenko MykolaMarusenko deleted the EPMDEDP-17134-gitlab-tls-ca-trust branch June 28, 2026 17:55
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.

2 participants