Skip to content

Commit

Permalink
Add tls_protocols_allowed option documentation (#11251)
Browse files Browse the repository at this point in the history
* Sync models

* Sync configuration

* Bump minimum base package

* Rename option

* Update description
  • Loading branch information
coignetp authored Feb 4, 2022
1 parent 0263d56 commit 3e129cc
Show file tree
Hide file tree
Showing 272 changed files with 1,403 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
url: str
Expand Down
14 changes: 14 additions & 0 deletions activemq_xml/datadog_checks/activemq_xml/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion activemq_xml/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=15.7.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'

setup(
name='datadog-activemq_xml',
Expand Down
4 changes: 4 additions & 0 deletions airflow/datadog_checks/airflow/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
1 change: 1 addition & 0 deletions airflow/datadog_checks/airflow/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
url: str
Expand Down
14 changes: 14 additions & 0 deletions airflow/datadog_checks/airflow/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion airflow/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=11.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
use_latest_spec: Optional[bool]
Expand Down
14 changes: 14 additions & 0 deletions amazon_msk/datadog_checks/amazon_msk/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion amazon_msk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=23.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
4 changes: 4 additions & 0 deletions ambari/datadog_checks/ambari/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
1 change: 1 addition & 0 deletions ambari/datadog_checks/ambari/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
url: str
Expand Down
14 changes: 14 additions & 0 deletions ambari/datadog_checks/ambari/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion ambari/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=11.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
4 changes: 4 additions & 0 deletions apache/datadog_checks/apache/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
1 change: 1 addition & 0 deletions apache/datadog_checks/apache/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
use_legacy_auth_encoding: Optional[bool]
Expand Down
14 changes: 14 additions & 0 deletions apache/datadog_checks/apache/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion apache/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=15.0.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'

setup(
name='datadog-apache',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
use_latest_spec: Optional[bool]
Expand Down
14 changes: 14 additions & 0 deletions avi_vantage/datadog_checks/avi_vantage/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion avi_vantage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=23.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion azure_iot_edge/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=23.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
4 changes: 4 additions & 0 deletions cilium/datadog_checks/cilium/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ def instance_tls_private_key(field, value):
return get_default_field_value(field, value)


def instance_tls_protocols_allowed(field, value):
return get_default_field_value(field, value)


def instance_tls_use_host_header(field, value):
return False

Expand Down
1 change: 1 addition & 0 deletions cilium/datadog_checks/cilium/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class Config:
tls_cert: Optional[str]
tls_ignore_warning: Optional[bool]
tls_private_key: Optional[str]
tls_protocols_allowed: Optional[Sequence[str]]
tls_use_host_header: Optional[bool]
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
Expand Down
14 changes: 14 additions & 0 deletions cilium/datadog_checks/cilium/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,20 @@ instances:
#
# tls_ca_cert: <CA_CERT_PATH>

## @param tls_protocols_allowed - list of strings - optional
## The expected versions of TLS/SSL when fetching intermediate certificates.
## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are:
## SSLv3
## TLSv1
## TLSv1.1
## TLSv1.2
## TLSv1.3
#
# tls_protocols_allowed:
# - SSLv3
# - TLSv1.2
# - TLSv1.3

## @param headers - mapping - optional
## The headers parameter allows you to send specific headers with every request.
## You can use it for explicitly specifying the host header or adding headers for
Expand Down
2 changes: 1 addition & 1 deletion cilium/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
return f.readlines()


CHECKS_BASE_REQ = 'datadog-checks-base>=23.2.0'
CHECKS_BASE_REQ = 'datadog-checks-base>=24.0.0'


setup(
Expand Down
Loading

0 comments on commit 3e129cc

Please sign in to comment.