You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal GitLab connection fails with unhelpful "request failed" error #1037
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Problem
ValidateGitHubToken, ValidateGitLabToken, and ValidateGoogleToken in components/backend/handlers/integration_validation.go discard the underlying network error and return a generic "request failed". This hides the root cause — TLS errors, DNS failures, connection refused, timeouts — from both users and operator logs.
Steps to reproduce
Deploy the latest version of the platform.
Go to Settings → Integrations → GitLab.
Enter a valid PAT for an internal GitLab instance (e.g. https://gitlab.cee.redhat.com).
An actionable error that includes the network-level cause, e.g.:
…request failed: tls: failed to verify certificate: x509: certificate signed by unknown authority
Suggested fix
The original comment says // Don't wrap error - could leak token from request details. The token is in the Authorization header, which *url.Error does not include — but the URL itself may be sensitive. Unwrap *url.Error to extract only the inner network error:
Important: This change is security-relevant. Unit tests must verify that the returned error contains the network-level cause (e.g. TLS, DNS) but does not expose the request URL.
changed the title [-]Integration token validation errors are overly sanitized, hiding root cause[/-][+]Internal GitLab connection fails with unhelpful "request failed" error[/+]on Mar 26, 2026
Activity
[-]Integration token validation errors are overly sanitized, hiding root cause[/-][+]Internal GitLab connection fails with unhelpful "request failed" error[/+]surface network errors from integration token validation (#1062)