Title: Quay registry integration test ignores insecure flag when using robot account credentials, causing test failures for self-signed certificates · Issue #18461 · stackrox/stackrox · GitHub
Open Graph Title: Quay registry integration test ignores insecure flag when using robot account credentials, causing test failures for self-signed certificates · Issue #18461 · stackrox/stackrox
X Title: Quay registry integration test ignores insecure flag when using robot account credentials, causing test failures for self-signed certificates · Issue #18461 · stackrox/stackrox
Description: The Quay registry integration test function (Test() method in pkg/registries/quay/quay.go) creates an HTTP client that doesn't respect the insecure configuration flag when using robot account credentials (username/password). This causes ...
Open Graph Description: The Quay registry integration test function (Test() method in pkg/registries/quay/quay.go) creates an HTTP client that doesn't respect the insecure configuration flag when using robot account crede...
X Description: The Quay registry integration test function (Test() method in pkg/registries/quay/quay.go) creates an HTTP client that doesn't respect the insecure configuration flag when using robot account c...
Opengraph URL: https://github.com/stackrox/stackrox/issues/18461
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quay registry integration test ignores insecure flag when using robot account credentials, causing test failures for self-signed certificates","articleBody":"The Quay registry integration test function (Test() method in pkg/registries/quay/quay.go) creates an HTTP client that doesn't respect the insecure configuration flag when using robot account credentials (username/password). This causes test validation to fail when connecting to Quay instances with self-signed certificates, even though the actual integration works correctly for image scanning operations.\n\n**Problem Description**\nIn pkg/registries/quay/quay.go around line 158, the Test() method has conditional logic:\n\n```func (q *Quay) Test() error {\n if q.config.GetOauthToken() != \"\" {\n return q.Registry.Test() // This works correctly with insecure flag\n }\n // When using robot credentials (no OAuth token), this path is taken:\n url := urlfmt.FormatURL(q.config.GetEndpoint(), urlfmt.HTTPS, urlfmt.NoTrailingSlash)\n discoveryURL := url + \"/api/v1/discovery\"\n client := http.Client{\n Timeout: timeout, // Missing TLS configuration!\n }\n```\n\nThe issue occurs specifically when:\n\n- Using robot account credentials (username/password) instead of OAuth token\n\n- insecure: true is set in the Quay integration config\n\n**Expected Behavior**\nThe test function should respect the insecure configuration flag when using robot account credentials, similar to how it works with OAuth token authentication.\n\n**Current Workaround**\nCurrently, users must set skipTestIntegration: true to avoid test failures, which disables validation entirely.\n\n**Proposed Solution**\nThe Test() function should configure the HTTP client's TLS settings when using robot credentials:\n\n```\nclient := \u0026http.Client{\n Timeout: timeout,\n}\n\nif q.config.GetInsecure() {\n transport := \u0026http.Transport{\n TLSClientConfig: \u0026tls.Config{InsecureSkipVerify: true},\n }\n client.Transport = transport\n}\n```","author":{"url":"https://github.com/kwiatkowski-vw","@type":"Person","name":"kwiatkowski-vw"},"datePublished":"2026-01-13T11:24:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18461/stackrox/issues/18461"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f5933cfd-2d0d-321a-c132-2db4cd530355 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1EE:150591:4446D0F:5C7B43F:6980AFB6 |
| html-safe-nonce | 557de20a92af3e4f50ee30ec457a22298a30c0629f6e2e3344b70f4240f08ee8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUVFOjE1MDU5MTo0NDQ2RDBGOjVDN0I0M0Y6Njk4MEFGQjYiLCJ2aXNpdG9yX2lkIjoiNDY5MTAxMjgyOTIwMzk2NzkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd74114575cd833ffa427de1cf478ec5334cc70fb68da2d187b84dc604238948 |
| hovercard-subject-tag | issue:3808409714 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackrox/stackrox/18461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/968887c668b986fceb2a622581fe0f5d39755fd7a66e0181b4560c6ab0d74500/stackrox/stackrox/issues/18461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/968887c668b986fceb2a622581fe0f5d39755fd7a66e0181b4560c6ab0d74500/stackrox/stackrox/issues/18461 |
| og:image:alt | The Quay registry integration test function (Test() method in pkg/registries/quay/quay.go) creates an HTTP client that doesn't respect the insecure configuration flag when using robot account crede... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwiatkowski-vw |
| hostname | github.com |
| expected-hostname | github.com |
| None | d5070894b88d5cf03785c677c23c659b0431dfc2e6df2f35e35f2e0de9ceb94a |
| turbo-cache-control | no-preview |
| go-import | github.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git |
| octolytics-dimension-user_id | 40638982 |
| octolytics-dimension-user_login | stackrox |
| octolytics-dimension-repository_id | 434017296 |
| octolytics-dimension-repository_nwo | stackrox/stackrox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 434017296 |
| octolytics-dimension-repository_network_root_nwo | stackrox/stackrox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 821a5a2664fd1c2441fb3caded98e0f525bf913f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width