SKY-D430 · Security in code
Obsolete TLS protocol configured
Skylos reports Python TLS contexts that explicitly select TLS 1.0, TLS 1.1 or an older SSL protocol. The minimum-version check is separate from certificate verification.
- Languages
- Python
- Quality gate
- counted toward the gate limits (full and diff scans)
- Finding type
- review
Why it matters
Old TLS and SSL versions lack protections expected by current clients and servers. A compatibility setting can enable an obsolete version on deployments that still support it.
What Skylos flags
import ssl context = ssl.create_default_context()context.minimum_version = ssl.TLSVersion.TLSv1_1What Skylos leaves alone
import ssl context = ssl.create_default_context()context.minimum_version = ssl.TLSVersion.TLSv1_2Why Skylos leaves it alone
The minimum protocol is TLS 1.2, so this setting excludes earlier versions.
How Skylos decides
- Resolves stdlib ssl and pyOpenSSL context APIs and matches explicit obsolete protocol constants, including supported defaults used by the API.
- Reports a recognized context's obsolete minimum version. Reads of a version constant outside TLS configuration are quiet.
How to fix it
Use the provider's current client or server context and require TLS 1.2 or newer. Keep certificate and hostname verification enabled.
When it can be wrong
- A system TLS policy can block the obsolete version even though the application requests it. Remove the stale setting and check supported deployments.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
Mark the reviewed line with a rule-scoped Skylos ignore for SKY-D430. Record the evidence that justifies the exception.