Skip to content

Commit 2674ea4

Browse files
committed
add blocked protocol versions config setting
1 parent 6d956ac commit 2674ea4

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

ansible/templates/zdm_proxy_mutable_config_env_vars.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ ZDM_REPLACE_CQL_FUNCTIONS={{ replace_cql_functions }}
5151
ZDM_FORWARD_CLIENT_CREDENTIALS_TO_ORIGIN={{ forward_client_credentials_to_origin }}
5252
{% endif %}
5353

54+
{% if ( blocked_protocol_versions is defined ) %}
55+
ZDM_BLOCKED_PROTOCOL_VERSIONS={{ blocked_protocol_versions }}
56+
{% endif %}
57+

ansible/templates/zdm_proxy_mutable_config_file.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ replace_cql_functions: {{ replace_cql_functions }}
5656
forward_client_credentials_to_origin: {{ forward_client_credentials_to_origin }}
5757
{% endif %}
5858

59+
{% if ( blocked_protocol_versions is defined ) %}
60+
blocked_protocol_versions: {{ blocked_protocol_versions }}
61+
{% endif %}

ansible/vars/zdm_proxy_advanced_config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
## Typically the same as the port on which the Origin cluster nodes listen for client connections.
1616
zdm_proxy_listen_port: 9042
1717

18+
################################
19+
### Protocol Versions ###
20+
################################
21+
22+
## Comma-separated string that represents a list of protocol versions that should be blocked by the proxy.
23+
## Usually this is not necessary but could be useful if the application is having issues with certain protocol versions.
24+
## This can generally be done in the driver but configuring it at the proxy level can be easier in certain deployments.
25+
## Defaults to "" (no blocked version). Possible values at the moment are: v2,v3,v4,v5,DseV1 and DseV2. The values
26+
## are case insensitive and the "v" letter can be ommitted (e.g. 2,3,4,5,Dse1). Example: "v2,v5,DseV1"
27+
#blocked_protocol_versions:
28+
1829
################################
1930
### CQL function replacement ###
2031
################################

0 commit comments

Comments
 (0)