Skip to content

Conversation

Shy
Copy link
Contributor

@Shy Shy commented Oct 10, 2025

Motivation

Added support for API Keys for temporal cloud.

/// requests to the Temporal server. This provides an alternative to mTLS certificate authentication
/// for Temporal Cloud deployments.
///
/// If both an API key and mTLS certificates are configured, the API key takes precedence for

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure if “takes precedence” is the right wording here, since both transport security and the API key are configured, I assume Temporal Cloud simply prioritizes authentication via the API key?

instrumentation: Instrumentation,
namespace: String = "default",
identity: String? = nil,
apiKey: String? = nil,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this key can only be set once and cannot be updated anymore after that, in contrast to the C# SDK: https://github.com/temporalio/sdk-dotnet/blob/75baab835682b7ea7bc87b3bc225c8b0526b33da/src/Temporalio/Client/TemporalConnection.cs#L98

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// requests to the Temporal server. This provides an alternative to mTLS certificate authentication
/// for Temporal Cloud deployments.
///
/// If both an API key and mTLS certificates are configured, the API key takes precedence for

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above.

@philippzagar
Copy link

Also some tests seem to fail constantly with that change: https://github.com/apple/swift-temporal-sdk/actions/runs/18418846103/job/52488729769?pr=29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants