Skip to content

Commit

Permalink
Merge pull request #137 from trifork/feature/flinkjob-tls1.3
Browse files Browse the repository at this point in the history
Change flink to TLS1.3 protocl as new default
  • Loading branch information
cthtrifork authored Oct 30, 2023
2 parents 25d69d8 + 728cd4e commit cbbdbb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/flink-job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.7.0
version: 0.8.0

dependencies:
- name: image-automation
Expand Down
5 changes: 3 additions & 2 deletions charts/flink-job/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flink-job

![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for handling Cheetah Data Platform Flink jobs

Expand Down Expand Up @@ -130,7 +130,8 @@ Read more about Flink and highly available job-managers [here](https://nightlies
| imagePullSecrets | list | `[]` | Array of image pull secrets. Each entry follows the `name: <secret-name>` format |
| version | string | `"v1_16"` | Which Flink version to use |
| internalSsl.enabled | bool | `true` | Whether to use SSL between the job- and taskmanager |
| internalSsl.algorithms | string | `"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"` | Set the algorithms allowed. see also: <https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/deployment/security/security-ssl/#cipher-suites> |
| internalSsl.algorithms | string | `"TLS_CHACHA20_POLY1305_SHA256,TLS_AES_256_GCM_SHA384"` | Set the algorithms allowed. see also: <https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/security/security-ssl/#cipher-suites> |
| internalSsl.protocol | string | `"TLSv1.3"` | Set the protocol allowed. |
| internalSsl.certDuration | string | `"26280h"` | What duration to give the certificates provisioned for the internal SSL. Value must be specified using a Go time.Duration string format |
| internalSsl.certRenewBefore | string | `"2160h"` | When to renew the certificates provisioned for the internal SSL. Value must be specified using a Go time.Duration string format |
| flinkConfiguration | object | (see [values.yaml](values.yaml)) | Flink configuration For more configuration options, see here: <https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/> For specific metrics configuration, see here: <https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/metric_reporters/> |
Expand Down
1 change: 1 addition & 0 deletions charts/flink-job/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ Add necessary ssl configuration
{{- $configs := .configs -}}
{{- $password := sha1sum (nospace (toString .global.image)) | trunc 10 }}
{{- if .global.internalSsl.enabled -}}
{{- $configs = fromJson (include "flink-job._dictSet" (list $configs "security.ssl.protocol" (toString .global.internalSsl.protocol))) -}}
{{- $configs = fromJson (include "flink-job._dictSet" (list $configs "security.ssl.algorithms" (toString .global.internalSsl.algorithms))) -}}
{{- $configs = fromJson (include "flink-job._dictSet" (list $configs "security.ssl.internal.enabled" "true")) -}}
{{- $configs = fromJson (include "flink-job._dictSet" (list $configs "security.ssl.internal.keystore" "/flinkkeystore/keystore.jks")) -}}
Expand Down
6 changes: 4 additions & 2 deletions charts/flink-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ internalSsl:
# -- Whether to use SSL between the job- and taskmanager
enabled: true
# -- Set the algorithms allowed.
# see also: <https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/deployment/security/security-ssl/#cipher-suites>
algorithms: "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
# see also: <https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/security/security-ssl/#cipher-suites>
algorithms: "TLS_CHACHA20_POLY1305_SHA256,TLS_AES_256_GCM_SHA384"
# -- Set the protocol allowed.
protocol: "TLSv1.3"
# -- What duration to give the certificates provisioned for the internal SSL.
# Value must be specified using a Go time.Duration string format
certDuration: 26280h
Expand Down

0 comments on commit cbbdbb2

Please sign in to comment.