Skip to content

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

Open
shreemaan-abhishek wants to merge 1 commit intoapache:masterfrom
shreemaan-abhishek:fix/tencent-cloud-cls-ssl-verify-shared-state
Open

fix(tencent-cloud-cls): add ssl_verify option and fix shared state in cls-sdk#13194
shreemaan-abhishek wants to merge 1 commit intoapache: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
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.

1 participant