Commit 6b14685
Allow HTTPS requests to use
* Add core TLS context changes
* Fix base package tests
* Run formatter
* Turn requests.X mocks into requests.Session.X
* Fix airflow unit tests
* Run formatter
* Add tls_ciphers to TLS Remote fetch_intermediate_certs
* Rework Adapter class
* Revert TLS protocol change
* Fix error in TlsContextAdapter
* Stop using TlsContextWrapper in RequestsWrapper
* Run formatter
* Add test for ciphers, switch naming to SSL and fix hole in persistent session logic
* Run formatter
* Naming
* Naming and test fixes
* Add unit test for debugging
* Fix consul test
* Fix consul config assertion
* Fail SSLContext certificate loading with WARNING instead of ERROR
* Lint
* Change mocks from requests.method to requests.Session.method
* Lint
* Fix couchbase tests
* Fix amazon_msk tests - mocking requests.get because the boto3 lib uses it
* Fix apache tests by reworking mock with requests.Session
* Fix arangodb tests by updating mock side effect
* Fix couch tests by updating mock with requests.Session
* Fix remaining occurrences of mock.patch("datadog_checks.base.utils.http.requests")
* Fix gitlab tests
* Fix harbor tests
* Fix hdfs_namenode tests
* Fix http_check test
* Fix mapreduce tests
* Fix proxysql test
* Fix spark tests
* Fix spark ssl test by fixing REMAPPER
* Fix twistlock tests
* Fix vault tests
* Fix vertica tests
* Fix yarn tests
* Fix avi_vantage test
* Fix http warning test
* Extract options to tls_config logic in separate function
* Add test for ssl_context initialization
* Run linter
* Fix falco test
* Fix `tls_verify` parsing in SSL context creation logic
* Add tests with custom server
* Fix request method use
* Fixing vsphere tests WIP
* Fix vsphere tests
* Run formatter
* Fix vault tests again
* Try fixing amazon_msk tests as they do not fail locally
* Try fixing amazon_msk tests as they do not fail locally 2
* Run formatter
* Try fixing amazon_msk tests as they do not fail locally 3
* Try fixing amazon_msk tests as they do not fail locally 4
* Try fixing amazon_msk tests as they do not fail locally 5
* Try fixing amazon_msk tests as they do not fail locally 6
* Try fixing http_check test
* Fix datadog_checks_dev test
* Fix datadog_checks_base test
* Try fixing tls_cipher test
* Run formatter
* Fix datadog_checks_base test 2
* Fix datadog_checks_base test 3
* Run formatter
* Fix datadog_checks_base test final
* Add changelog
* Update base.py
* Use create_ssl_context in tls_remote
* Apply suggestions from code review
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>
* Add _mount_new_ssl_adapter method
* Implement suggestions from code review
* Use ChainMaps
* Implement caching for HTTPS adapters
* Use pydantic for TlsConfig class
* Minor improvements and fixes
* Add tests
* Run formatter
* Allow tls_ca_cert to be bool for legacy compatibility
* Fix datadog_checks_base tests
* Fix default tls_verify value in go_expvar
* Fix proxysql and vertica tests
* Run formatter and fix linting
* Add go_expvar changelog
* Fix base tests
* Fix intermediate_certs_tests for windows
* Fix intermediate_certs_tests for windows in a better way
* tweak how we create session and mount adapter
* Remove unused func and mounting https adapters when creating session
* Mount default https adapter in property
* Apply suggestions from code review
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>
* Update datadog_checks_base/datadog_checks/base/utils/http.py
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>
* Add TypeError for wrong TLS option types
* Run formatter
* Fix kubelet typo in test
* Run the ACTUAL formatter
* remove shallow network module
* Update datadog_checks_base/datadog_checks/base/utils/http.py
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>
* Make SSLContextAdapter private and simplify super() calls
---------
Co-authored-by: Ilia Kurenkov <ilia.kurenkov@datadoghq.com>tls_ciphers (DataDog#20179)1 parent dc2258e commit 6b14685
119 files changed
Lines changed: 1116 additions & 639 deletions
File tree
- airflow/tests
- amazon_msk/tests
- apache/tests
- arangodb/tests
- avi_vantage/tests
- cert_manager/tests
- cilium/tests
- citrix_hypervisor/tests
- consul/tests
- couchbase/tests
- couch/tests
- crio/tests
- datadog_checks_base
- changelog.d
- datadog_checks/base/utils
- tests/base
- checks
- openmetrics/test_legacy
- prometheus
- utils
- http
- datadog_checks_dev
- changelog.d
- datadog_checks/dev
- plugin
- tooling
- templates/integration
- check_only/{check_name}/datadog_checks/{check_name}/config_models
- check/{check_name}/datadog_checks/{check_name}/config_models
- jmx/{check_name}/datadog_checks/{check_name}/config_models
- datadog_cluster_agent/tests
- dcgm/tests
- druid/tests
- ecs_fargate/tests
- elastic/tests
- envoy/tests/legacy
- etcd/tests
- external_dns/tests
- falco/tests
- fluxcd/tests
- fly_io/tests
- gitlab_runner/tests
- gitlab/tests
- go_expvar
- changelog.d
- datadog_checks/go_expvar
- haproxy/tests
- legacy
- harbor/tests
- hdfs_datanode/tests
- hdfs_namenode/tests
- http_check/tests
- impala/tests
- kube_apiserver_metrics/tests
- kube_controller_manager/tests
- kube_dns/tests
- kube_metrics_server/tests
- kube_proxy/tests
- kube_scheduler/tests
- kubelet/tests
- kubevirt_api/tests
- kubevirt_controller/tests
- kubevirt_handler/tests
- mapreduce/tests
- marathon/tests
- mesos_master/tests
- mesos_slave/tests
- nginx_ingress_controller/tests
- nginx/tests
- nvidia_nim/tests
- octopus_deploy/tests
- openstack_controller/tests
- legacy
- php_fpm/tests
- powerdns_recursor/tests
- prometheus/tests
- rabbitmq/tests
- ray/tests
- scylla/tests
- sonatype_nexus/tests
- spark
- changelog.d
- datadog_checks/spark
- tests
- squid/tests
- strimzi/tests
- teamcity/tests
- tekton/tests
- temporal/tests
- tls
- changelog.d
- datadog_checks/tls
- torchserve/tests
- inference
- management
- openmetrics
- twistlock/tests
- vault/tests
- vllm/tests
- voltdb/tests
- vsphere
- changelog.d
- datadog_checks/vsphere
- tests
- yarn/tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | | - | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 68 | + | |
| 69 | + | |
77 | 70 | | |
| 71 | + | |
78 | 72 | | |
79 | | - | |
| 73 | + | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| |||
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
567 | | - | |
| 569 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments