feat: add default true for azure sdk OPENSSL_DISABLE_CRL_CHECK#2190
Conversation
PR Review: azure_asr_python — default
|
8df10b7 to
b9ab992
Compare
PR ReviewThanks for the PR. I reviewed the full diff and the azure_asr_python extension, and I think this PR is incomplete as it stands. Main issue: the feature code is missing The PR title is feat: add default true for azure sdk OPENSSL_DISABLE_CRL_CHECK, but the entire diff is just a version bump: There is no code that sets OPENSSL_DISABLE_CRL_CHECK. I searched the whole extension (extension.py, config.py, const.py) and the env var does not appear anywhere. So a build from this branch would not change Azure SDK CRL behavior at all, it only publishes a new version number for a behavior change that is not there. To deliver what the title promises, the actual change is needed. OPENSSL_DISABLE_CRL_CHECK is read by the Azure Speech SDK native networking layer from the process environment, so it has to be set before the SDK opens its connection. The natural place is early in start_connection() (or on_init()), e.g.: A few design points worth deciding before merging:
Minor: version jump The bump goes 0.2.7 -> 0.2.9, skipping 0.2.8. If that is intentional (a 0.2.8 published elsewhere) it is fine; otherwise 0.2.8 is the expected next patch. Also, once real behavior is added, a feature would conventionally land as a minor bump (0.3.0) rather than a patch. Test coverage No tests are included. Since this changes connection-time behavior, a small test asserting the env var is set (and that the config flag toggles it) would help, the extension already has a tests/ directory to extend. Summary The version bump is harmless on its own, but as submitted the PR does not implement the titled feature. I would hold merge until the env-var-setting code (ideally behind a config flag) is added, then re-confirm the version bump matches. Happy to look again once the implementation is in. |
PR Review: add default true for azure sdk OPENSSL_DISABLE_CRL_CHECKSmall, focused change. A couple of points worth considering before merge. Security — the main one to weigh
This is a common workaround — CRL endpoints are sometimes unreachable and cause connection hangs/timeouts — so the intent is understandable. But the tradeoff is being applied to all users unconditionally. Two suggestions:
Since it's set before the Version bump
Test coverageNo test accompanies the change. A small assertion that the property is set on Overall the change is reasonable and the placement is correct. The security default is the one thing I'd want an explicit decision on rather than an implicit default. |
PR Review — azure_asr_pythonSummaryThe PR title advertises a feature ( Main concern: title/intent vs. actual diffThe shipped change does not implement what the title and commits describe. Two ways to read this:
Could you clarify which case applies? As it stands, the diff and the title disagree, which will be confusing in the history and changelog. Version bump
If the OPENSSL_DISABLE_CRL_CHECK feature is meant to shipSince the feature touches TLS certificate validation, a few things to keep in mind when it's reintroduced:
Code quality / other notes
VerdictNo bugs in the shipped diff (it's a one-line version string change), but the PR should not merge as-is until the title/description are reconciled with the actual contents — either correct the metadata for a maintenance bump, or restore the intended feature with config + tests + a security rationale for the default. |
No description provided.