Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 4bb756f

Browse files
author
Chris Wiechmann
committed
Added required parameter to control ES-CA validation
1 parent 8cc2877 commit 4bb756f

File tree

7 files changed

+24
-2
lines changed

7 files changed

+24
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- Updated API-Builder custom flow node libraries
1212

1313
### Added
14-
- APIBuilder4Elastic should use configured ELASTICSEARCH_CA [#157](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/157)
14+
- APIBuilder4Elastic now using configured ELASTICSEARCH_CA [#157](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/157)
1515
- New optional parameters
1616
- `KIBANA_ELASTICSEARCH_SSL_VERIFICATIONMODE` to configure Kibana to Elasticsearch certificate validation [#156](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/156)
1717
- `APIBUILDER_ELASTICSEARCH_SSL_VERIFICATIONMODE` to configure API-Builder to Elasticsearch certificate validation [#156](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/156)

helm/templates/apibuilder4elastic/apibuilder4elastic-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77
{{- include "apibuilder4elastic.labels" . | nindent 4 }}
88
data:
99
ELASTICSEARCH_HOSTS: {{ required "The value global.elasticsearchHosts is missing." .Values.global.elasticsearchHosts | quote }}
10+
ELASTICSEARCH_CA: {{ required "The path to the CA for API-Builder to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
11+
ELASTICSEARCH_SSL_VERIFICATIONMODE: {{ .Values.apibuilder4elastic.ssl.validateElasticsearchCertificate | quote }}
1012
ADMIN_NODE_MANAGER: {{ required "The Admin-Node-Manager URL (apibuilder4elastic.anmUrl) is required." .Values.apibuilder4elastic.anmUrl | quote }}
1113
API_MANAGER: {{ default "" .Values.apibuilder4elastic.apimgrUrl | quote }}
1214
API_BUILDER_SSL_CERT: {{ default "config/certificates/apibuilder4elastic.crt" .Values.apibuilder4elastic.ssl.cert | quote }}

helm/templates/elasticApimApmServer/apm-server-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ data:
1212
ELASTICSEARCH_HOSTS: {{ required "The value global.elasticsearchHosts is missing." .Values.global.elasticsearchHosts | quote }}
1313
ELASTICSEARCH_CLUSTER_UUID: {{ index .Values "apm-server" "elasticsearchClusterUUID" | quote }}
1414
ELASTICSEARCH_CA: {{ required "The path to the CA for APM-Server to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
15+
ELASTICSEARCH_SSL_VERIFICATIONMODE: {{ .Values.apm-server.ssl.validateElasticsearchCertificate | quote }}
1516
APM_SERVER_CRT: {{ index .Values "apm-server" "ssl" "cert" }}
1617
APM_SERVER_KEY: {{ index .Values "apm-server" "ssl" "key" }}
1718
{{- end }}

helm/templates/elasticApimFilebeat/filebeat-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ data:
1313
ELASTICSEARCH_HOSTS: {{ required "The value global.elasticsearchHosts is missing." .Values.global.elasticsearchHosts | quote }}
1414
ELASTICSEARCH_CLUSTER_UUID: {{ .Values.filebeat.elasticsearchClusterUUID | quote }}
1515
ELASTICSEARCH_CRT: {{ required "The path to the CA for Logstash to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
16+
ELASTICSEARCH_SSL_VERIFICATIONMODE: {{ .Values.filebeat.ssl.validateElasticsearchCertificate | quote }}
1617
FILEBEAT_WORKER: {{ .Values.filebeat.filebeatWorker | quote }}
1718
FILEBEAT_COMPRESSION_LEVEL: {{ .Values.filebeat.compressionLevel | quote }}
1819
SELF_MONITORING_ENABLED: {{ .Values.global.selfMonitoringEnabled | quote }}

helm/templates/elasticApimKibana/kibana-env-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ data:
2626
SERVER_SSL_CERTIFICATE: {{ default "config/certificates/kibana.crt" .Values.kibana.ssl.cert | quote }}
2727
SERVER_SSL_KEYPASSPHRASE: {{ default "" .Values.kibana.ssl.password | quote }}
2828
ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES: {{ required "The path to the CA for Kibana to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
29+
ELASTICSEARCH_SSL_VERIFICATIONMODE: {{ .Values.kibana.ssl.validateElasticsearchCertificate | quote }}
2930
{{- end }}

helm/templates/elasticApimLogstash/logstash-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ data:
2323
LS_JAVA_OPTS: {{ .Values.logstash.logstashJavaOpts | quote }}
2424
ELASTICSEARCH_HOSTS: {{ required "The value global.elasticsearchHosts is missing." .Values.global.elasticsearchHosts | quote }}
2525
ELASTICSEARCH_CERT: {{ required "The path to the CA for Logstash to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
26+
ELASTICSEARCH_SSL_VERIFICATIONMODE: {{ .Values.logstash.ssl.validateElasticsearchCertificate | quote }}
2627
API_BUILDER_URL: "https://{{ include "apim4elastic.fullname" . }}-apibuilder4elastic:{{ .Values.apibuilder4elastic.port }}"
2728
DROP_TRACE_MESSAGE_LEVELS: {{ .Values.logstash.dropTraceMessageLevels | quote }}
2829
API_BUILDER_SSL_CERT: {{ required "The path to the CA for Logstash to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}

helm/values.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ apibuilder4elastic:
112112
# configMap:
113113
# name: custom-configuration
114114

115-
# Setup the SSL-Configuration for API-Builder for Elastic
115+
# Setup the SSL-Configuration for API-Builder4Elastic
116116
# Use secretMounts to mount your keys & certificates into pod
117117
# and configure them here.
118118
ssl: {}
119119
# key: "config/certificates/apibuilder4elastic.key"
120120
# cert: "config/certificates/apibuilder4elastic.crt"
121121
# password: ""
122122

123+
# Here you may disable the Elasticsearch server certificate validation for APIBuilder4Elastic
124+
# validateElasticsearchCertificate: false
125+
123126
# localAPILookup enables the Local API-Lookup feature
124127
# Use extraVolumes & extraVolumeMounts to mount your custom configuration into
125128
# the API-Builder4Elastic container.
@@ -449,6 +452,11 @@ kibana:
449452
# key: "certificates/kibana.key"
450453
# cert: "certificates/kibana.crt"
451454
# password: ""
455+
456+
# Here you can configure the Elasticsearch server certificate validation for Kibana
457+
# Possible values: (full|certificate|none) - Defaults to: full
458+
# validateElasticsearchCertificate: none
459+
452460
secretMounts:
453461
- name: certificates
454462
secretName: axway-elk-apim4elastic-certificates
@@ -541,6 +549,10 @@ filebeat:
541549
# - name: custom-certificate
542550
# secretName: custom-certificate
543551
# path: /usr/share/filebeat/config/certificates
552+
553+
# Here you can configure the Elasticsearch server certificate validation for Filebeat (for monitoring only)
554+
# Possible values: (full|strict|certificate|none) - Defaults to: full
555+
# ssl.validateElasticsearchCertificate: none
544556

545557
# extraVolumes is used to provide Filebeat access to the necessary log files from the API-Gateways.
546558
# The API-Gateways write to the same volumes accordingly.
@@ -726,6 +738,10 @@ apm-server:
726738
key: "config/certificates/apmserver.key"
727739
# password: ""
728740

741+
# Here you can configure the Elasticsearch server certificate validation for the APM-Server
742+
# Possible values: (full|strict|certificate|none) - Defaults to: full
743+
# validateElasticsearchCertificate: none
744+
729745
livenessProbe:
730746
httpGet:
731747
path: /

0 commit comments

Comments
 (0)