About Configuring a TimesTenClassic Object for Automatic Client/Server TLS Encryption
You can customize your TimesTenClassic object to enable automatic client/server TLS encryption by including a .spec.ttspec.clientTLS section in your TimesTenClassic object definition. When you include the .spec.ttspec.clientTLS section in your TimesTenClassic object definition and set .spec.ttspec.clientTLS.auto to true, the TimesTen Operator notices and takes action to create self-signed certificates and configure TimesTen to use those certificates for client/server encryption.
.spec.ttspec.clientTLS.apiVersion: timesten.oracle.com/v4
kind: TimesTenClassic
metadata:
name: sampletls
spec:
ttspec:
storageClassName: oci-bv
clientTLS:
auto: true
ciphersuites: SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
eccurve: p256
encryption: required
signAlg: ecdsasha384
validity: 365
storageSize: 10Gi
image: container-registry.oracle.com/timesten/timesten:22.1.1.34.0
imagePullSecret: sekret
dbConfigMap:
- sampletls.spec.ttspec.clientTLS in more detail:
-
auto: Determines if automatic client/server encryption is enabled. Setautototrueto enable automatic client/server encryption. The default isfalse. If set to false, there is no automatic client/server encryption for this TimesTenClassic object. -
ciphersuites: Defines the cipher suite(s) used for client/server communication. You can specify one or more cipher suites. If there is more than one cipher suite, use a comma-separated list, and list the cipher suites in order of preference. This example specifiesSSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384.The TimesTen Operator first checks to see if there is aciphersuitesentry in thedb.inifile.-
If there is an entry, the TimesTen Operator uses it.
-
If there is no entry, the TimesTen Operator uses the value specified in
.spec.ttspec.clientTLS.ciphersuites. -
If
.spec.ttspec.clientTLS.autoistrue, and there is no value specified in either thedb.inifile or in.spec.ttspec.clientTLS.ciphersuites, the TimesTen Operator sets the value toSSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.
The TimesTen Operator adds the
ciphersuitesvalue to the TimesTen Server'ssys.odbc.inifile. -
-
eccurve: Defines the elliptical curve signing algorithm. This example specifiesp256.When the TimesTen Operator runs the TimesTen
ttCreateCertsutility, it supplies the.spec.ttspec.clientTLS.eccurvevalue to the-eccurveoption of the TimesTenttCreateCertsutility. If you do not specify a value, the default isp384. For a list of supported values, see TimesTenClassicSpecSpecClientTLS. -
encryption: Defines the encryption setting for client/server access. This example specifiesrequired.The TimesTen Operator first checks to see if there is anencryptionentry in thedb.inifile for the object.-
If there is an entry, the TimesTen Operator uses it.
-
If there is no entry, the TimesTen Operator uses the value specified in
.spec.ttspec.clientTLS.encryption. -
If
.spec.ttspec.clientTLS.autoistrue, and there is no value specified in either thedb.inifile or in.spec.ttspec.clientTLS.encryption, the default isaccepted. For a list of supported values, see TimesTenClassicSpecSpecClientTLS.
The TimesTen Operator adds the
encryptionvalue to the TimesTen Server'ssys.odbc.inifile. -
-
signAlg: Defines the elliptical curve signing algorithm. This example specifiesecdsasha384.When the TimesTen Operator runs the TimesTen
ttCreateCertsutility, it supplies the.spec.ttspec.clientTLS.signAlgvalue to the-sign_algoption of the TimesTenttCreateCertsutility. If you do not specify a value, the default isecdsasha384. For a list of supported values, see TimesTenClassicSpecSpecClientTLS. -
validity: Defines the number of days the created certificate is valid. This example specifies365.When the TimesTen Operator runs the TimesTen
ttCreateCertsutility, it supplies the.spec.ttspec.clientTLS.validityvalue to the-validityoption of the TimesTenttCreateCertsutility. If you do not specify a value, the default is3650. For a list of supported values, see TimesTenClassicSpecSpecClientTLS.
-
TimesTenClassicSpecSpecClientTLS in this book.
-
Configuration for TLS for Client/Server in the Oracle TimesTen In-Memory Database Security Guide.