Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] mTLS NativeConnectionOptions tonic::transport::Error(Transport, NativeCertsNotFound) #1584

Open
cawalch opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cawalch
Copy link

cawalch commented Dec 11, 2024

What are you really trying to do?

Use mTLS within NativeConnectionOptions to connect to a cluster

Describe the bug

Moving from 1.11.3 to 1.11.5 broke the NativeConnectionOptions / connect call with a TransportError

/app/node_modules/@temporalio/worker/lib/connection.js:58
                throw new core_bridge_1.TransportError(err.message);
                      ^
TransportError: tonic::transport::Error(Transport, NativeCertsNotFound)
    at NativeConnection.connect (/app/node_modules/@temporalio/worker/lib/connection.js:58:23)

Able to confirm it's an issue with 1.11.5 after reverting back to 1.11.3

Minimal Reproduction

tlsConfig option

connectionOptions.tls = {
      serverNameOverride: config.TEMPORAL_TLS_SERVER_NAME,
      serverRootCACertificate: fs.readFileSync(config.TEMPORAL_TLS_CA),
      clientCertPair: {
        crt: fs.readFileSync(config.TEMPORAL_TLS_CERT),
        key: fs.readFileSync(config.TEMPORAL_TLS_KEY),
      },
    }

Environment/Versions

The application is built and deployed as a docker image

  • Docker / node:22.11.0-bookworm-slim
  • Hosting environment / Ubuntu 22
@cawalch cawalch added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant