Fix ifeval not passing CI
This commit is contained in:
parent
51899b01b8
commit
e57e13754a
@ -0,0 +1 @@
|
||||
As part of its certification validation, {cert_framework_context} also verifies the server hostname with the certificate chain.
|
@ -2,7 +2,3 @@ The certificate validation gets disabled by setting `{cert_variable_name}` to
|
||||
`{cert_variable_unsafe_value}`. To enable validation set the value to
|
||||
`{cert_variable_safe_value}` or do not set `{cert_variable_name}` at all to
|
||||
use the secure default value.
|
||||
|
||||
ifeval::[{cert_hostname_check_builtin} == true]
|
||||
As part of its certification validation, {cert_framework_context} also verifies the server hostname with the certificate chain.
|
||||
endif::[]
|
||||
|
@ -7,11 +7,13 @@ include::../../common/fix/code-rationale.adoc[]
|
||||
:cert_variable_name: verify_ssl
|
||||
:cert_variable_unsafe_value: False
|
||||
:cert_variable_safe_value: True
|
||||
:cert_hostname_check_builtin: true
|
||||
:cert_framework_context: aiohttp
|
||||
|
||||
include::../../common/fix/code-rationale-setting.adoc[]
|
||||
|
||||
:cert_framework_context: aiohttp
|
||||
|
||||
include::../../common/fix/cert-hostname-validation-overlap.adoc[]
|
||||
|
||||
==== Noncompliant code example
|
||||
|
||||
[source,python,diff-id=41,diff-type=noncompliant]
|
||||
|
@ -7,11 +7,13 @@ include::../../common/fix/code-rationale.adoc[]
|
||||
:cert_variable_name: verify
|
||||
:cert_variable_unsafe_value: False
|
||||
:cert_variable_safe_value: True
|
||||
:cert_hostname_check_builtin: true
|
||||
:cert_framework_context: HTTPX
|
||||
|
||||
include::../../common/fix/code-rationale-setting.adoc[]
|
||||
|
||||
:cert_framework_context: HTTPX
|
||||
|
||||
include::../../common/fix/cert-hostname-validation-overlap.adoc[]
|
||||
|
||||
==== Noncompliant code example
|
||||
|
||||
[source,python,diff-id=31,diff-type=noncompliant]
|
||||
|
@ -7,11 +7,13 @@ include::../../common/fix/code-rationale.adoc[]
|
||||
:cert_variable_name: verify
|
||||
:cert_variable_unsafe_value: False
|
||||
:cert_variable_safe_value: True
|
||||
:cert_hostname_check_builtin: true
|
||||
:cert_framework_context: Requests
|
||||
|
||||
include::../../common/fix/code-rationale-setting.adoc[]
|
||||
|
||||
:cert_framework_context: Requests
|
||||
|
||||
include::../../common/fix/cert-hostname-validation-overlap.adoc[]
|
||||
|
||||
==== Noncompliant code example
|
||||
|
||||
[source,python,diff-id=11,diff-type=noncompliant]
|
||||
|
Loading…
x
Reference in New Issue
Block a user