stackabletech / stackabletech/trino-operator
Using internal and external TLS uses wrong certificate for internal communication
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 63
- Forks
- 13
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 12
Description
We have configured Trino to use the auto-generated TLS certificate for internal communication and a company-provided certificate for server communication:
apiVersion: trino.stackable.tech/v1alpha1
kind: TrinoCluster
metadata:
name: trino
spec:
image:
productVersion: "455"
clusterConfig:
listenerClass: external-unstable
catalogLabelSelector:
matchLabels:
trino: trino
tls:
internalSecretClass: tls
serverSecretClass: trino-worker-cert-class
# (...)
However, the serverSecretClass certificate is used for internal configuration, which causes failed connections between worker and coordinator pods.
As a workaround we overwrite the discovery url to match the servers fqdn and node port:
# (...)
configOverrides:
config.properties:
# Fix for internal Trino cluster communication with custom certificate
discovery.uri: "https://<external-node-fqdn-url>:<external-coordinator-node-port>"
# (...)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the TrinoCluster TLS fields internalSecretClass and serverSecretClass are used when generating internal communication and discovery configuration. Reproduce the worker-to-coordinator connection failure and verify that internal communication uses the auto-generated certificate while server communication uses the company-provided certificate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, rust
- Domain
- infrastructure, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100