Skip to content

fix(tencent-cloud-cls): add ssl_verify option and fix shared state in cls-sdk#13194

Merged
Baoyuantop merged 1 commit into
apache:masterfrom
shreemaan-abhishek:fix/tencent-cloud-cls-ssl-verify-shared-state
Apr 21, 2026
Merged

fix(tencent-cloud-cls): add ssl_verify option and fix shared state in cls-sdk#13194
Baoyuantop merged 1 commit into
apache:masterfrom
shreemaan-abhishek:fix/tencent-cloud-cls-ssl-verify-shared-state

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Summary

  • Replace module-level shared headers_cache and params_cache tables in cls-sdk with per-request local tables to prevent data leaking between concurrent requests.
  • Add ssl_verify plugin configuration option (default: true) so TLS certificate verification is no longer unconditionally disabled.
  • Add enum validation for scheme to restrict it to http and https.

Test plan

  • Existing t/plugin/tencent-cloud-cls.t tests pass
  • Verify ssl_verify defaults to true and is correctly passed through to the HTTP client

… cls-sdk

The cls-sdk used module-level `headers_cache` and `params_cache` tables
that were reused across requests. Under concurrent access this could
cause headers or params from one request to leak into another. Replace
them with per-request local tables.

Also add a `ssl_verify` plugin configuration option (default: true) so
TLS certificate verification is no longer unconditionally disabled, and
restrict `scheme` to its valid values via an enum.
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Apr 10, 2026
@Baoyuantop
Baoyuantop merged commit 656a8dd into apache:master Apr 21, 2026
19 checks passed
@shreemaan-abhishek shreemaan-abhishek mentioned this pull request Jun 11, 2026
5 tasks
wistefan pushed a commit to wistefan/apisix that referenced this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants